Jump to content

how do i sell warps as items?


Recommended Posts

so i am making miningpvp and i have some islands that is need warps to but i dont know how to make them with skript if u know how to then plz send me the skript it is a item (i can change the item myself so it dosnt matter to much) that can be right clickd and then u can tp to a location i want to beable to put them in a shop like shopkeepers from the plugin shopkepper thank u very much.

  • Confused 1
Link to comment
Share on other sites

Moved to Script Discussion.

Joined on January 17th 2016

VIP since April 5 2017 - August 1st 2019

JrMod since August 1st

Mod since October 1st

SrMod since November 2nd - 2/7/21

Patron since February 8 - 3/7/21

Mod since March 8 2021

Retired since idk when


    [IMG]    button.png?t=Appeal&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1 button.png?t=Rules&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1  

If I helped or entertained you at all today, please react with a heart.

Link to comment
Share on other sites

Well firstly, you seem like you don't know Skript at all, so it might be helpful to learn sometime.

If you want to sell warps as an item you will need to create a skript where a certain named item teleports the player to warp, then you put that exact item in the Shopkeepers GUI to be traded for, which I assume you already know how to do.

If the name of the item or name color of the item is different than the one in the Shopkeepers GUI, it won't work, so ensure you get the item from the command I am going to make and put that in the Shopkeeper GUI. Then, delete the command thereafter.


command /givewarp:
	permission: op 
    	give 1 of eye of ender named "&eWarp Item" with lore "&eWarp1" #Replace Warp1 with the name of your warp.

on right click:
	player's held item's name contains "&eWarp Item" #Checks if it's the right item
	set {_l} to line 1 of lore of player's held item #Sets the lore to a variable to then be used
    execute console command "/warp %player% %{_l}%" #Makes console teleport the player to the warp which is stored in the lore of the item.

Not tested, but it should very well work. It is explained. Change what you need, and hopefully this will help you on your toes and you can learn something from tweaking with it.

rose city STICKER


i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

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...