Possible to allow user to place a sapling or plant o wood?

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

  • 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.

retronix

Supporter +
Aug 18, 2018
19
0
1
39
So, in trying to figure out of it's possible to place a flower on wood using script.
 
are you wanting to do this within your skript (like a command) or are you wanting to write so in game you can place a flower on wood?
 
So after some testing.... this is an odd one. Skript doesn't recognize right clicking with a flower on a block it can't be placed on, such as wood.
This is probably do-able in skript mirror... its not easy, but at least it recognizes the event

EDIT: This IS do-able in Skript mirror
 
So after some testing.... this is an odd one. Skript doesn't recognize right clicking with a flower on a block it can't be placed on, such as wood.
This is probably do-able in skript mirror... its not easy, but at least it recognizes the event

EDIT: This IS do-able in Skript mirror
can you give me an example?
 
Even thought I sent this to you on discord, I wanted to post it here anyways... so if someone in the future sees it, they know what to do
NOTE: Im just learning skript mirror so this may not be the cleanest way of doing this
code_language.skript:
on "org.bukkit.event.player.PlayerInteractEvent":
    set {_p} to event.getPlayer()
    if {_p}'s tool is a rose:
        if "%event.getAction()%" is "RIGHT_CLICK_BLOCK":
            send "YES" to {_p}
            if event.getClickedBlock() is any oak log:
                set block above event.getClickedBlock() to rose
                remove 1 of {_p}'s tool from {_p}'s tool
 
Status
Not open for further replies.