why does this not work

Discussion in 'Skript' started by hassan7000, Aug 17, 2017.

  1. If it was written in java I would have helped you.
     
  2. Try this
    Code (Text):
    on right click:
        if player's tool is iron hoe named "&Egen":
            add 1 of iron ingot to player
            wait 50 ticks
            add 1 of iron ingot to player
            stop
     
  3. set it to the player's inventory like tihis:
    Code (Text):
    on right click with iron hoe:
        if name of player's tool is "&Egen":
            add 1 of iron ingot to player's inventory
            wait 50 ticks
            add 1 of iron ingot to player's inventory
            stop
     
  4. try this
    Code (Text):
    on rightclick:
        if player's tool is iron hoe named "&Egen":
            add 1 iron to player
            wait 50 tick
            add 1 iron to player
     
  5. Code (Text):
    on rightclick:
        if player's tool is iron hoe named "&egen":
            add 1 iron ingot to player's inventory
            wait 50 ticks
            add 1 iron ingot to player's inventory
     
  6. Well there are a lots of ways to do the same thing but I prefer this way :v
    Code (Text):
    on rightclick:
        player is golding an iron hoe named "&Egen"
        give a iron ingot to player
        wait 50 ticks
        give a iron ingot to player