Started by
smily face
on
Topic category: Help with Minecraft modding (Java Edition)
english:
hello i am trying to make a pedestal for my mod, you know a block in which you click with an item in your hand and the item floats on top, like this with several, then you click with your hand and the items are removed and dropped Another, someone can tell me how this is done, please.
Edited by smily face on Sun, 04/12/2020 - 22:32
you can't do this yet, sorry.
I mean you probably can, it would just take forever. You'd have to make a model of the pedestal with every single block and item in the game ontop it. Then make a procedure where if you right click with a Oak log (for example) it would remove block at X Y Z and place block at X Y Z.
thanks
I think you can do it much easier, by creating an invisible armourstand in the block, and add a procedure, that puts the item in your main hand on the head of armourstand; the minus is, it will not have floating effect ;-(
you can do this with the help of a rack for armor that has tags that it is invisible and does not have AI, and then teleport it to the same place with a turn
Haven't tried it yet but:
Spawn item/gem [item] at x: [x] y:[y+1] z:[z] pickup delay: [999999] despawn:[ ]
you shouldn't be able to pick it up. Delay is ifinite