A lot of stuff in minecraft is data driven, however, for some reason the composter isn't. I suggest to change the composter so it's data driven, whilst adding some additional functionality at the same time, such as filling up the composter more than 1 level. the JSON file could look something like this, for example:
{
"type": "minecraft:composting"
"ingredients": [
{
"item": "minecraft:banana_peel"
}
],
"results": [
{
"level": 0,
"chance": 0.10
},
{
"level": 1,
"chance": 0.70
},
"level": 2,
"chance": 0.20
}
]
}
The example above would mean that the hypothetical banana peel item has a 10% chance to not add any levels to the composter, 70% chance to add 1 level to the composter and 20% chance to add 2 levels to the composter.
The "chance" fields would obviously have to add up to 1.00, and the game could throw an exception/error if it doesn't add up to that.
I'm aware that no items in minecraft can add more than 1 level to the composter (currently), but this could allow for more flexible and interesting recipes for datapack/modpack creators, and potentially for mojang themselves in the future.
Please sign in to leave a comment.
0 Comments