Make Block dispense Exp at Interaction

Started by italy2003 on Mon, 11/02/2020 - 22:13

Topic category: Help with modding (Java Edition)

Last seen on 14:08, 3. Nov 2020
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make Block dispense Exp at Interaction
Mon, 11/02/2020 - 22:13

How do I allow a player right click my block and have the block dispense experience orbs with a specified amount of Exp which passively increase over time?

More exact, every ingame-day the "counter" should increase by 1 Exp Level. It accumulates passively and the Exp is dispensed at the top of the block when it's right clicked.

1 Day = 1 Level
2 Days = 2 Levels
etc.

Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can summon XP orbs as…
Tue, 11/03/2020 - 18:34

You can summon XP orbs as entities, same way you'd summon any other entity. And I believe there's a way to detect the day number in the dimension.