Summoning something on an altar

Started by UnderWaves on Sun, 08/18/2019 - 22:05

Topic category: Help with MCreator modding

Last seen on 15:32, 22. Sep 2019
Joined Jan 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Summoning something on an altar
Sun, 08/18/2019 - 22:05

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 ^^

Last seen on 15:32, 22. Sep 2019
Joined Jan 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
By the way, I also tried by…
Sun, 08/18/2019 - 22:08

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.

Last seen on 15:32, 22. Sep 2019
Joined Jan 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
...nevermind, I managed to…
Sun, 08/18/2019 - 22:33

...nevermind, I managed to fix myself the problem.

I just had to make the Altar being another material than "AIR".