Automatic planting skript help

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

FLIP_NETWORK

Member
Feb 23, 2022
1
0
1
skript : 2.4-beta5
spigot : 1.12.2

It's not working. Please tell me the solution.

options:
접두사: &a&l[&6&l!&a&l]&f
딜레이: 2 seconds

command /자동씨앗:
trigger:
set {_uuid} to uuid of player
{autoSeed::%{_uuid}%} is not set:
set {autoSeed::%{_uuid}%} to true
send "{@접두사} 활성화"
stop
delete {autoSeed::%{_uuid}%}
send "{@접두사} 비활성화"

function autoSeed(player: player, item: item, block: item, loc: location):
wait {@딜레이}
{_player} is online
block at {_loc} is air
if {_item} is nether wart item:
block at location 1 down {_loc} is not soul sand block:
stop
else if block at location 1 down {_loc} is not farmland:
stop
set {_uuid} to uuid of {_player}
{autoSeed::%{_uuid}%} is set
{_player} has {_item}
remove 1 of {_item} from {_player}
set block at {_loc} to {_block}

on break:
if id of event-block is 59: # 밀
autoSeed(player, seeds, freshly planted wheat plant, event-location)
else if id of event-block is 141: # 당근
autoSeed(player, carrot, freshly planted carrot plant, event-location)
else if id of event-block is 142: # 감자
autoSeed(player, potato, freshly planted potato plant, event-location)
else if id of event-block is 207: # 사탕무 씨앗
autoSeed(player, beetroot seeds, freshly planted beetroot plant, event-location)
on break of nether wart: # 네더와트
autoSeed(player, nether wart item, nether wart, event-location)
 
Status
Not open for further replies.