CraftTweaker

CraftTweaker

151M Downloads

Suggestion: Adding block properties editing to ZenScript

grundyboy34 opened this issue ยท 3 comments

commented

Intro:

Something that doesn't easily exist currently is a way for users to edit the properties of blocks, especially in 1.10.2

Issue Description:

Ideally, ZenScript could be extended to allow us to do something like Block.setHarvestLevel(minecraft:log, 2) or even use ore dictionaries so that every block under that entry would get the function ran as well. Ex: Block.setHarvestLevel(ore:logWood, 2).
This could be used to edit all properties of blocks, from harvestLevel to flammability

commented

Once I familiarize myself with the current API I will look into what is possible. Due to the way MineTweaker scripts are processed, some block properties may not be feesable. Others are though.

commented

Flammability isn't easily settable.

commented

Even though this issue is a bit old, if you really need something to change block properties, you could use ExtraTweaker a minetweaker/crafttweaker addon