[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)

Active 1 year ago
Joined Jun 2023
Points:
247

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 19
[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
Active 6 months ago
Joined Dec 2019
Points:
686

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 54
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 

Active 1 year ago
Joined Jun 2023
Points:
247

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 19
@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.

Active 6 months ago
Joined Dec 2019
Points:
686

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 54
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.. :)