Jump to content

Potions with different tiers?


DonGiovanni

Recommended Posts

 

Hi, I am unsure of how to create potions (in item form) with different levels in skript.


technical details:

(I have included versions of skript and the addons I’m using here)

Plugins in use:

  • bStats
  • multiverse Core 
  • player server
  • plugin metrics
  • skellet (skript addon) V1.95a-minehut
  • skript v2.5-beta2-MH
  • skquery (skript addon) v3.6.4MH

This worked:

command /go:
 trigger:
  add potion of instant health to inventory of block at location at (0, 0, 0)

Yet, I want to specify the level of 'instant health, since I know you can do that whilst adding potion effects to a player, like this:

command /go:
 trigger:
  apply potion of instant health of tier 3 to player 

I tried a similar syntax for a potion as an item:

command /go:
 trigger:
  add level 3 potion of instant health to inventory of block at location at (0, 0, 0)

Although that resulted in a syntax error, despite having checked the syntax here on skript hub: https://skripthub.net/docs/?id=862

Any ideas/suggestions?

(Keep in mind I prefer directly attributing the type of potion in the potion's metadata itself, rather than activating an effect as a result of drinking a potion)

Thanks for any replies!

Edited by DonGiovanni
forgot to specify the inventory of where the potion will be added
Link to comment
Share on other sites

19 hours ago, TheEnderGami said:

What do you mean by this like do more damage? If so it should not be hard.

 

Yes, so a splash potion of harming say level 10, rather than the usual level 1 or 2, and I though it would be possible since you can apply potion effects to levels like 10.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...