#farm
1 messages · Page 1 of 1 (latest)
coul you help me with the correct one?
nvm i fixed it
srory
if event-block is in the region "Farm":
if event-world is "world2":
add 7 to player's balance
cancel drops
if random integer between 1 and 25 is 1:
give wheat named "&aEnchanted Wheat" to player
send "&a&lUNCOMMON DROP &aEnchanted Wheat &7(5.0)" to player
else:
if random integer between 1 and 30 is 2:
give potato named "&aEnchanted Potato" to player
send action bar "&3+1 EXP" to player
play sound "entity.experience_orb.pickup" with volume 0.5 to the player
wait 50 ticks
set event-block to fully grown wheat plant
stop
else:
cancel the event
but now it doesnt regrow
nvm i fixed rhat sorry
now it doenst give potatoes
if event-block is in the region "Farm":
if event-world is "world2":
add 7 to player's balance
cancel drops
if random integer between 1 and 25 is 1:
give wheat named "&aEnchanted Wheat" to player
send "&aRARE DROP Enchanted Wheat &7(5.0)" to player
else:
if random integer between 1 and 30 is 2:
give potato named "&aEnchanted Potato" to player
send action bar "&3+1 EXP" to player
play sound "entity.experience_orb.pickup" with volume 0.5 to player
wait 50 ticks
set event-block to fully grown wheat plant
else:
cancel the event```
no need to check for world if you're checking for region
also,
if regions at event-block contain "Farm"
I think this should work