Started by
Fyazy
on
Topic category: Help with Minecraft modding (Java Edition)
When I tried to change the drop from the sheep, the wool still fell out, that is, it continued to fall from the sheep if I kill it, how can I change the drop of wool so that instead of a block there is a ball of wool? (the thing is that I want to make a mod inspired by TerraFirmaCraft mod and the Sevtech: Ages modpack, especially the modpack)
Ok certain thing is, to make the wool ball drop, you'll do a procedure with trigger "entity dies", and then check if entity is (sub)type of sheep. then make it so that when that condition is true, it'll spawn the dropped item of wool ball.
You could make a procedure that instantly despawns the wool when it drops, just see if there's something in the triggers that can fit this.
Oo thank you, also do i need to make many colors of wool ball as separate item or i can do something to have many items with identical id?
Very sketchy for the different ID thing, I never did it but I know there is a special tab when creating an item, where you can define an item's texture changes, but I don't think that would work if you want to make them randomized.
Browse the plugins, there should be a plugin (if I remember right) that can do this texture randomizing.
I meant identical ID thing sorry
ty again
Just use itemstates for the different wools, to determine what one is spawned make an nbt number tag which is a random integer between 1 and the number of types. Then make each type correspond to a different nbt number.
In itemstates create a custom property called colour or something. Then create all your different states for each colour where the property value is colour = number, etc
I had figured that NBT tags could have been the way, but this method doesn't work for me. Maybe I'm doing something wrong.