Help with experience procedure

Started by aoooodi2 on Wed, 10/14/2020 - 01:02

Topic category: Help with MCreator software

Last seen on 17:48, 26. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help with experience procedure
Wed, 10/14/2020 - 01:02

I would like to know how to use experience for ammo in a ranged item,if u have more than 1 exp u can use the item but if u dont have exp you cant use the item,also i wanna know if theres a way to make a cooldown.

Last seen on 14:59, 26. Nov 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can have it set so the…
Wed, 10/14/2020 - 13:34

You can have it set so the item doesnt use any item ammo, I think. After that have it so in the On Player Use trigger, it runs of procedure that removes XP, I think you should be able to have it add -5 XP since otherwise you can only remove full levels, but Im not sure.

In the trigger for other requirements for using the item simply have it return Amount of XP of Event/Target Entity > 1

If having it add -5 XP doesnt do anything, you could have it instead run a command of the /experience type, that I think exists.

 

As for the cooldown, there should be a cooldown option, but if there isnt you could have it so while its in the players hand every tick, it increases a specific NBT by 1, by setting the NBT to that NBT + 1 every tick. And then in the requirements trigger, have it return the amount of XP, like before but include it with a And < get NBT of type _____ > 40 >.

I hope this helps.

Last seen on 17:48, 26. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how can i use the trigger…
Wed, 10/14/2020 - 16:19

how can i use the trigger for other requirements?

the ´´can use range item´´ procedure?

 

 

Last seen on 14:59, 26. Nov 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I think that's the one, yeah.
Wed, 10/14/2020 - 16:21

I think that's the one, yeah.

Last seen on 17:48, 26. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
oh ok,but for some reason i…
Wed, 10/14/2020 - 16:22

oh ok,but for some reason i cant put a procedure in there,you know why that is?

 

Last seen on 14:59, 26. Nov 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
For triggers that are…
Wed, 10/14/2020 - 16:34

For triggers that are supposed to return a true or false statement, I think you have to make the procedure before adding it.
You'd have to make the procedure separately, then go back and add it there. I think.

 

Last seen on 17:48, 26. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
ok thanks,im going to try…
Wed, 10/14/2020 - 16:37

ok thanks,im going to try that

Last seen on 17:48, 26. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Wed, 10/14/2020 - 16:48

r

Last seen on 17:48, 26. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The get level of event…
Wed, 10/14/2020 - 16:54

image

The get level of event\target entity procedure is right? 

 

can u see the image?

Last seen on 17:48, 26. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thanks,the experience part…
Wed, 10/14/2020 - 22:45

thanks,the experience part works well but i dont understand how to do the cooldown part

Last seen on 11:10, 23. Nov 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
In the Item Procedures tab,…
Sun, 10/18/2020 - 15:49

In the Item Procedures tab, there's a block called Cooldown (Provided itemstack) for (100) ticks for (Event/target entity). I think if you just put this into your procedure that runs On Player Use you should be good. 

Last seen on 11:10, 23. Nov 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
And no, I can't see the…
Sun, 10/18/2020 - 15:49

And no, I can't see the image :/

Last seen on 17:48, 26. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
no,it dosent work.  
Sun, 10/18/2020 - 16:01

no,it dosent work.