Merge NBT data with Custom Block

Started by iFamished on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Merge NBT data with Custom Block

Ok. So... This might be impossible with MCreator, but I know procedures can do a lot. Here is the step-by-step of what I would like to do:

 

  • Check if a player right clicks on a monster spawner with this item in hand (I will call this item Item1)
  • Check what the monster spawner spawns (zombie, spider, etc.)
  • Save that data to Item1

 

This next part might have to be a seperate procedure, idk.

  • Check when a player right clicks on any block with Item1
  • Use the data saved to Item1 from the monster spawner to spawn that entity, kind of like a spawn egg
  • Delete the data saved to Item1

 

Any help would be much appreciated!