Jump to content

Player's held item not working


edgaro93

Recommended Posts

Hello! So I am making a bee swarm simulator in minecraft and some of my tools are not working.
There are no errors in the code, but the Porcelain Dipper, Petal Wand, Tide Popper, Dark Scythe are not working. The code has been copied and pasted from one tool to another and it works for other tools and I dont know whats the issue.

It drops the pollen for other tools, but the tools which I named are not dropping anything.

I have already triple checked the item names!

on break:
 if player's gamemode is survival:
  if player's held item is a wooden hoe named "&7&lScooper":
   give 1 white dye named "&f&lWhite Pollen" to player
  if player's held item is a wooden hoe named "&7&lRake":
   give 2 white dye named "&f&lWhite Pollen" to player 
  if player's held item is a wooden hoe named "&c&lMagnet":
   give 3 red dye named "&c&lRed Pollen" to player
  if player's held item is a stone hoe named "&e&lSuper&8&l-&9&lScooper":
   give 3 red dye named "&c&lRed Pollen" to player
   give 1 white dye named "&f&lWhite Pollen" to player
  if player's held item is a stone hoe named "&e&lElectro&8&l-&b&lMagnet":
   give 3 blue dye named "&9&lBlue Pollen" to player
   give 2 white dye named "&f&lWhite Pollen" to player
  if player's held item is a stone hoe named "&6&lHoney Dipper":
   give 4 blue dye named "&9&lBlue Pollen" to player
   give 3 white dye named "&f&lWhite Pollen" to player
  if player's held item is a iron hoe named "&6&lGolden Rake":
   give 11 white dye named "&f&lWhite Pollen" to player
  if player's held item is a iron hoe named "&5&lSpark Staff":
   give 7 red dye named "&c&lRed Pollen" to player
   give 7 blue dye named "&9&lBlue Pollen" to player
  if player's held item is a iron hoe named "&f&lPorcelain &7&lDipper":
   give 6 red dye named "&c&lRed Pollen" to player
   give 6 blue dye named "&9&lBlue Pollen" to player
   give 6 white dye named "&f&lWhite Pollen" to player
  if player's held item is a golden hoe named "&5&lPetal &f&lWand":
   give 6 red dye named "&c&lRed Pollen" to player
   give 9 blue dye named "&9&lBlue Pollen" to player
   give 9 white dye named "&f&lWhite Pollen" to player
  if player's held item is a diamond hoe named "&9&lTide &1&lPopper":
   give 9 red dye named "&c&lRed Pollen" to player
   give 12 blue dye named "&9&lBlue Pollen" to player
   give 9 white dye named "&f&lWhite Pollen" to player
  if player's held item is a diamond hoe named "&c&lDark &4&lScythe":
   give 12 red dye named "&c&lRed Pollen" to player
   give 9 blue dye named "&9&lBlue Pollen" to player
   give 9 white dye named "&f&lWhite Pollen" to player
  if player's held item is a netherite hoe named "&3&lGummy &5&lBaller":
   give 11 red dye named "&c&lRed Pollen" to player
   give 11 blue dye named "&9&lBlue Pollen" to player
   give 15 white dye named "&f&lWhite Pollen" to player

Edited by edgaro93
Link to comment
Share on other sites

Hey, instead of 

if player's held item is a iron hoe named "&f&lPorcelain &7&lDipper":

Try

if tool of player is iron hoe:
   if name of tool of player is "&f&lPorcelain &7&lDipper":

just add 1 condition, because skript is bugging in this sometime.

(if it works, just do it for every that does not work)

Edited by DanRub
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...