Commander Project

Commander Project

16 Downloads

Extensions to the expression format.

melontini opened this issue ยท 0 comments

commented

What would you like to see added?

Since EvalEx can evaluate Maps and all the methods it calls are containsKey and get, we can pass a lot of objects as proxy maps. At the moment we support getting fields and calling getters.

  • Support for querying NBT.

In 1.20.1-4 stack support is pretty easy to implement, because stacks rely on NBTs to store their data. My idea is to have a custom nbt field for objects were we can easily get compound instances. I'll have think about 1.20.5

Example: if(tool.nbt.Unbreakable, 2, 0) or this_entity.nbt.Age > 200

  • Support for querying (block) state properties.

Properties are maps, so this should be possible.

Example: block_state.properties.facing == "north"

Images

No response