Topic category: Help with Minecraft modding (Java Edition)
Hello people!
So, here's my problem.
I'm actually trying to create a boss that will be summoned when right-clicking on a special block (Altar) with a certain object (Callstone) in hand.
The problem is that when I right-click on the altar with my callstone in hand, NOTHING HAPPENS. I made a procedure on the "on block right-clicked" trigger, and the procedure is :
If [Item in entity's main hand] = [Callstone]
do | Remove [1] [Callstone] From provided (entity)player's inventory
| Spawn at x = [x] y = [[y] + [1]] z = [z] entity: [CUSTOM:Boss]
| execute command / [ tellraw @a {"text":"Boss spawned","color":"aqua"} ]
And it doesn't work. The weird thing is that it worked for another block, but this one was designed to give something to the player instead of spawning a mob. Does MCreator not support spawning an entity at coords relative to the block with the trigger block? Does my procedure suck? Please help me, I really need to solve this problem to continue in my mod ^^
By the way, I also tried by inverting the process : by using the "right clicked on block (hand loc.)" trigger in the Callstone trigger page, by using this IF command :
If [ [Get block at x = [x] y = [y] z = [z] ] = [Altar] ]
Didn't work either.
...nevermind, I managed to fix myself the problem.
I just had to make the Altar being another material than "AIR".