Spawning xp orb with NBT data [Solved]

Started by Geilosaurus on Mon, 05/16/2022 - 13:06

Topic category: Help with modding (Java Edition)

Last seen on 13:14, 6. Jul 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 11:26, 7. Jul 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 13:14, 6. Jul 2022
Joined Nov 2021
Points:

User statistics:

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

Thanks!