#farm

1 messages · Page 1 of 1 (latest)

little ridge
#

it alays gives you enchanted wheat. and now it doesnt regen the wheat (it did before, the random integer is breaking it somehow)

grand nacelle
#

wrong indentation

#

you need to add 1 indent level after every if:

little ridge
#

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```
grand nacelle
#

also,

#

if regions at event-block contain "Farm"

#

I think this should work