[SOLVED] How do I incorporate a range between numbers in a prodcedure?

Started by Constant Constantine on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] How do I incorporate a range between numbers in a prodcedure?
Mon, 11/27/2023 - 19:14 (edited)

I want to make an item that only works when the player has a certain range of xp levels but, I can't find any procedure block that looks like it would even remotely help.

(An example of an item like this would be a staff that can only be used when the player has 10 - 100 xp levels.)

 

I am using mcreator 2023.3 for forge 1.20.1.

Edited by Constant Constantine on Mon, 11/27/2023 - 19:14
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Opps I made a little mistake…
Mon, 11/27/2023 - 06:27

Opps I made a little mistake : change this block : 'Get Xp level of event/ target entity >= 100' to 'Get Xp level of event/ target entity <= 100'
and your good to go 

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@howtoredstone actually, I…
Mon, 11/27/2023 - 19:14

@howtoredstone actually, I had to flip both, not just the one. But other than that, thanks a lot! It works exactly as I wanted it to.

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah sorry for that... I…
Wed, 11/29/2023 - 12:17

Yeah sorry for that... I didn't test it so i knew that it will has some problems... any way np.. :)