Started by
FoggyRoad
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a Blue Berry Bush and I want it to drop a random amount of Berry's but everything I looked up doesn't explain it, Or I'm just a little dumb lol.
Use the math "random(0,1)" to give you a random number between 0,1. Use X 10 to make it 1-10, X5 = 1-5 etc.
So you use that with spawn gem (maybe repeat a loop the random number of times) to drop the items
So to drop 5 berries:
Repeat Random(0,1)*5
Spawn gem "Berry"
where is spawn gem ?