Started by
cubeultm
on
Topic category: Help with Minecraft modding (Java Edition)
Alright, so I want to try to get a cow to drop my custom item, Cow Dung (don't ask why), at certain intervals, like the chicken does with the eggs.
How would I be able to do it using Procedures?
Make a procedure whenever a player joins the world and then make it do the command
execute as @e[type=minecraft:cow] run summon minecraft:item ~ ~ ~ {item:{id:”(the item you want to summon)”}}
and then add a wait block for however long you want the time in between the drops to be and then the run procedure block for the same procedureHow would I do that in the procedures item? Could you send some screenshots?
You can also make a procedure for 'On loaded entity tick update' and make this:
If Event/Target Entity is (sub)type cow
If Random integer between 1 and (Average amount of ticks you want it to take) = 1
Spawn Item/Gem () at x y z