#A Clickable Item Entity?

6 messages · Page 1 of 1 (latest)

solar wigeon
#

I don't know what to call it but I want an item to have a clickable hitbox similar to item physics but it can rotate similar to draconic evolution dragon heart.

But the first feature is the one I do want to get working first.

crystal hedgeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

solar wigeon
#

A Clickable Item Entity?

dull perchBOT
#

[➤](#1279767738285424712 message)
ok so i instead made it a function so you have the choice of making every item pickable or only certain items js EntityJSEvents.modifyEntity((event) => { event.modify("minecraft:item", (modifyBuilder) => { modifyBuilder.isPickable(entity => { return true; }) modifyBuilder.onInteract(context => { console.log("test") }) }) })
this i can confirm works

clever oxide
#

then you can filter it by doing js if (entity.item.id != "minecraft:diamond") return false at the start of the isPickable callback

solar wigeon