| home | true | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| heroImage | /logo.png | |||||||||||||||
| title | ObjD | |||||||||||||||
| actionText | Get Started → | |||||||||||||||
| actionLink | /guide/ | |||||||||||||||
| features |
|
|||||||||||||||
| footer | MIT Licensed | Copyright © 2022 Stevertus |
Use a programming language to generate Datapacks and benefit from the unlimited enhancements.
import 'package:objd/core.dart';
@Prj()
final example = NamespacePack();
@Pck(load: 'load')
final namespace = [LoadFile];
@Func()
final load = Log('Reloaded!');Each part of a Datapack is seperated into Widgets. A Widget can be a simple Command, a group of Commands, whole Files or Packs.
<iframe width="560" height="315" style="margin: 0 calc(50% - 280px)" src="https://www.youtube-nocookie.com/embed/2Df24YXR5to" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>objD features a lot of in-built Widgets, like Basics(Pack, File, Entity, Group) all the Commands, Text Generators and Utils, like Timers, RNG, Raycasting and Loops.
Get all the information that you need in this youtube series:
<iframe width="560" height="315" style="margin: 0 calc(50% - 280px)" src="https://www.youtube-nocookie.com/embed/videoseries?list=PL5AxRIlgrL5GnKz69w4AUyqpZC35BlxdD" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>import 'package:objd/core.dart';
@Prj(name: 'folder name')
final example = Pack(
name: 'mypack',
modules: [
ClickEvent(
name: 'onclick',
onClick: Score(Entity.Self(), 'counter') + 1,
)
],
load: LoadFile,
main: MainFile,
);
@Func()
final load = Log('Runs on Load');
@Wdg
Widget showTitle(String text) => Title(
Entity.All(),
show: [TextComponent(text, color: Color.Red)],
);
@Func()
final main = If(
Score(Entity.Self(), 'counter') >= 10,
then: [
ShowTitle('clicked ten times!'),
Score(Entity.Self(), 'counter').reset(),
],
);Get started today by installing objD and playing around.
Or- added arguments methods on context to generate macro commands introduced in 1.20.2
- added Random Widget
- added Return.run and Return.fail subcommands
- added supportedFormats and packFormat to Project, default version is now 20.4
- added arguments field for File.execute to run functions with arguments
- updated blocks, items, particles and entities to include content from 1.20.4 and 23w51b
- updated documentation links to the new minecraft wiki https://minecraft.wiki (thanks @Spongecade)
- fixed Entity to introduce a trailing comma when given empty tags
- fixed Entity.Clone to deep copy, instead of shallow copy (thanks @CCpcalvin)