Custom item thats supposed to work just like a spawn egg spawns mobs INSIDE the block clicked on

Started by leetcga on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom item thats supposed to work just like a spawn egg spawns mobs INSIDE the block clicked on

i use "When right-clicked on block" to activate a procedure that spawns the entity at the specified xyz of the block except that actually means it spawns inside the block. any way to alter the coordinates depending on the side of the block pressed?

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you mean, suffocating inside…
Thu, 07/11/2024 - 20:04

you mean, suffocating inside the block, breaking its bones?

spawn entity... y: [[y] - 1]

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
while yes that fixes…
Fri, 07/12/2024 - 04:23

while yes that fixes spawning on the ground, it doesnt solve if you place it on a wall or ceiling