objd 0.0.3 copy "objd: ^0.0.3" to clipboard
objd: ^0.0.3 copied to clipboard

outdated

objd is a Object Oriented framework for Building Minecraft Datapacks with ease

example/example.dart

import 'package:objd/core.dart';

main() {
  createProject(Project(
      target: "./example/", name: "example Datapack", generate: mainWidget()));
}

class mainWidget extends Widget {
  @override
  Widget generate(Context context) {
    return Pack(
      name: 'example',
      main: File(
        path: 'main',
        child: Command('say test' + context.packId),
      ),
      files: [
        File(
            execute: true,
            path: 'test',
            child: Execute(
              as: Entity.Player(),
              at: Entity.Selected(),
              encapsulate: false,
              children: List.generate(
                100,
                (i) => SetBlock(
                      Block.stone,
                      location: Location.rel(x: 0, y: i + 0.0, z: 0),
                    ),
              ),
            )),
      ],
    );
  }
}
3
likes
0
pub points
39%
popularity

Publisher

verified publisherstevertus.com

objd is a Object Oriented framework for Building Minecraft Datapacks with ease

Homepage

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

colorize, meta

More

Packages that depend on objd