How to spawn xb orbs near player when breaking a SPECIFIC block

Started by Franc3schinello on

Topic category: Help with modding (Java Edition)

Last seen on 15:02, 24. Feb 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to spawn xb orbs near player when breaking a SPECIFIC block

Hi guys, I'm getting CRAZY 

For 2 hours I've been looking up between forums and my own mind but I couldn't get an answer so I'm asking directly to you hoping for a response in the short term.

I need to make some xp orbs spawn when the player breaks a SPECIFIC block but I don't know how should I do that.

For now, I only know how to give (not spawn orbs) exp to the player when he breaks blocks in general but how can I SPAWN exp orbs when the player breaks A SPECIFIC block? 
Please help me because I'm getting insane.

Last seen on 19:31, 22. Feb 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on which version of mcreator…
Wed, 02/21/2024 - 12:57

on which version of mcreator are you working on?
im not sure when it has been implemented or whatever but there is an option to spawn experience orbs?
 


add a procedure on the trigger for the block - "when block destroyed by player"
and make a procedure with this block.

Last seen on 15:02, 24. Feb 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm working on the latest…
Wed, 02/21/2024 - 15:28

I'm working on the latest version and the mod is for Minecraft 1.20

I think it has been implemented but if it has not been implemented I just want it to give xp to the player when he breaks THAT block.

If I add the procedure "when player breaks a block" the game doesn't care if that's the block because I've not designated a specific block but when the player breaks a block in the world