#Block throwing Item

1 messages · Page 1 of 1 (latest)

oak raptor
#

I am currently working on a plugin which has an item where you right click the air and it throws a grass block
but when I finished the code it didn't work!
can someone help?
https://paste.md-5.net/hosumabepa.cpp

twilit glacier
vague spruce
#

You forgot @EventHandler on your method annotation :p

oak raptor
#

oh ffs

vague spruce
#

also dont make it static

oak raptor
#

oke

#

thanks

#

uhh the block still doesn't spawn

vague spruce
#

The events registered?

Maybe add in some debug logs and see how far down it fires

oak raptor
#

So, I made it send a message in chat when you right click it. So at first I made it under the "if (e.getItem().getItemMeta().equals(ItemManager.overworld)){" and it didn't work

#

so I think it can't identify the meta

#

o I fixed it