#prestige
1 messages · Page 1 of 1 (latest)
In case you have all your prestige system made with skript, you can use the following links:
https://forums.skunity.com/threads/vanilla-guis.8939/
https://skripthub.net/docs/?id=1134
https://skripthub.net/docs/?id=4068
ok ty
command /prestige:
trigger:
open chest inventory with 3 rows named "Prestige:" to player
set slot 4 of player's current inventory to paper named "&7⬇ You must place &fx4 &7of &ePrestige Star &7⬇"
set slot (all integers between 0 and 26 where [input isn't 4 or 13]) of player's current inventory to gray stained glass pane named " "
give 8 nether star named "&ePrestige Star" with nbt "{prestigeStar:true}" to player
on inventory click:
event-inventory's name is "Prestige:"
if event-slot's index != 13:
cancel event
stop
player's cursor slot's type != air
wait 1 tick
(tag "prestigeStar" of nbt compound of event-slot) is set
stop if event-slot's item amount < 4
if event-slot's item amount = 4:
set event-slot to air
else:
remove 4 from event-slot's item amount
send "&aPrestige!" to player
give sunflower of unbreaking with all flags hidden named "&ePretige Token" with nbt "{pretigeToken:true}" to player
Here you have a small example.
in this case
i would get the nether stars with the prestige name and puit it there
?
Not the name, in this case I recommend you use the nbt as I show you in the example
And in this way, you set that value to nbt when you give the required object.
np
I wouldn't know how to explain it, but in summary it is the internal data of each object/entity... in the case of entities you can't add custom nbt, in the case of objects you can, and that helps you to add an additional layer of " security" at certain events.
https://github.com/ShaneBeee/SkBee/wiki
Also, to learn more about it, I recommend you to read the skbee documentation, although believe me it's not that difficult to understand...
so how would i get the item for the prestige
Before I answer that, do you get the prestige item through an external plugin? or skript?
In case you get it with skript, send me your code.
In case you get it with an external plugin, use the following code to get all your nbt:
command /getNBT:
trigger:
player's tool != air
send player's tool's nbt
and when you receive it send me a print
i dont have code thats the issue im tryna make one but i just started
i have only made like at the most a 10 line code before
im tryna make it in skript
Give me a moment and I'll give you a simple example, it will be just an example... you shouldn't use it in your final version

ok
This would be a simple example.
options:
requiredItems: 4 #Amount of required items!
command /prestige [<text>]:
trigger:
if arg-1 is "get-item":
give 64 of nether star named "&e&lPrestige Star&r" with nbt "{prestigeTool:true}" to player
send "You got &ex64 &fprestige stars!"
stop
open chest inventory with 4 rows named "Prestige GUI:" to player
set slot 13 of player's current inventory to player skull with nbt "{SkullOwner:{Id:""faa66c0d-8855-4ebb-8e6a-47fb771f874c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDFiNjJkYjVjMGEzZmExZWY0NDFiZjcwNDRmNTExYmU1OGJlZGY5YjY3MzE4NTNlNTBjZTkwY2Q0NGZiNjkifX19""}]}}}" named "&7Place &ex{@requiredItems} &7of required item!"
set slot (all integers between 0 and 35 where [input != 13 or 22]) of player's current inventory to gray stained glass pane named "&7◆"
on inventory click:
event-inventory's name is "Prestige GUI:"
if event-slot's index != 22:
cancel event
stop
player's cursor slot's type != air
wait 1 tick
(tag "prestigeTool" of nbt compound of event-slot) is set
stop if event-slot's item amount < {@requiredItems}
set {_a} to rounded down (event-slot's item amount / {@requiredItems})
set {_r} to rounded down ({_a} * {@requiredItems})
if event-slot's item amount - {_r} <= 0:
set event-slot to air
else:
remove {_r} from event-slot's item amount
give {_a} of sunflower named "&6&lPrestige Token&r" with nbt "{prestigeToken:true}" to player
send "You got &ex%{_a}% &fprestige token(s)!"
do i add that to the end of the last one u sent
Replace all the code that I'm sending you with this new one, and try it... but I remind you that it's just an example, I don't recommend using it as it is.
Which version are you using?
https://minecraft-heads.com/custom-heads/alphabet/9983-light-gray-arrow-down
In that case you must use the texture corresponding to your version, I use 1.8
and it also did not give me the prestige stars
Of course, possibly the id is different, try to use an id of your version, any object is valid.
ok
ok ty
i had one more question
its not on the same topic
I have another skript
on mine:
if player's gamemode is not creative:
if player has permission "block.tp":
give drops of event-block using player's tool to player
cancel drops
this is for an autopickup skript but i was wondering if there is a way to make stuff like stone and wood also have fortune
the fortune works for iron and stuff like that tho
I'm not sure if it could be done "automatically", but this might help you.
https://forums.skunity.com/threads/is-there-a-way-to-break-stone-with-fortune-and-get-the-fortune-blocks.14544/
I got a box server on minehut and I would like to know if I can apply fortune to stone. I have absolutely no idea how someone would do this soo yeah. :)