Spawning xp orb with NBT data [Solved]

Started by Geilosaurus on

Topic category: Help with modding (Java Edition)

Last seen on 17:18, 1. Sep 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Spawning xp orb with NBT data [Solved]
Tue, 05/17/2022 - 07:29 (edited)

I wanted to make a pickaxe that spawns an xp orb when breaking a block, so I used the "spawn entity" block in the "block destroyed" event. This worked, but the xp orb didn't have a value, meaning that I didn't gain any xp when collecting it. How can I spawn an experience orb that actually gives xp?

Edited by Geilosaurus on Tue, 05/17/2022 - 07:29
Last seen on 05:05, 30. Oct 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
World Management tab ->     …
Mon, 05/16/2022 - 18:36

World Management tab ->

          Spawn XP orb at <X> <Y> <Z> with xp amount of <N>

Last seen on 17:18, 1. Sep 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks!
Tue, 05/17/2022 - 07:29

Thanks!