Solved plant command

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Kiri

Active Member
Jan 28, 2017
54
2
1
24
Category:

Suggested name: replant

What I want:
command /plant (radius) would check for all farmland within radius and plant crop if the block above it is air.

Ideas for commands: /plant

Ideas for permissions: plant

When I'd like it by: anytime within a week
 
Last edited:
Should work.

not tested.

code_language.skript:
command /plant [<number>]:
    trigger:
        if arg-1 is not set:
            send "Please enter Radius."
        else:
            loop blocks in radius arg-1 around block at player:
                if loop-block is farmland:
                    above loop-block is air
                    set block at above loop-block to seeds
 
Should work.

not tested.

code_language.skript:
command /plant [<number>]:
    trigger:
        if arg-1 is not set:
            send "Please enter Radius."
        else:
            loop blocks in radius arg-1 around block at player:
                if loop-block is farmland:
                    above loop-block is air
                    set block at above loop-block to seeds
thank you
 
Hello I have used the / additional commode in the field I set I want to crops all the farmland blocks in the "field" world but I can not!
[doublepost=1511214654,1511214593][/doublepost]
Should work.

not tested.

code_language.skript:
command /plant [<number>]:
    trigger:
        if arg-1 is not set:
            send "Please enter Radius."
        else:
            loop blocks in radius arg-1 around block at player:
                if loop-block is farmland:
                    above loop-block is air
                    set block at above loop-block to seeds
How can I plant plants on the FarmLand blog?