#Admin items
1 messages · Page 1 of 1 (latest)
Wdym, like ban hammer?
It can be anything like totem bow sword anything if you can do it
Like, a item, only admins can use? Or just an item that works differently then others?
Only admins can use
Ok, so let's say a admin only totem
Bc I got armor that's protection 20 and a sword that's sharp 20 so yeah totem sounds good
First /tag @a[name={player}] add admin (replace {player} with the players name)
Then /give @a[tag=admin] totem 1 1
The thing I came up for a totem was inf totem that when popped it gives another but I forgot the command
One sec
Oh, sure
/replaceitem entity @e[name=Zz4308] slot.weapon.offhand 0 totem_of_undying replace Zz4308 with your name and it will work
But totem dosnt work if there is a hacker bc they can hit one thousand times per click
Now place a command block (repeating, unconditional, 30 tick delay) that says /tag @a[hasitem={location=slot.weapon.mainhand, item=totem, data=1}] add inftot
Then use this cmnd but replace the hole name part with tag=inftot and add replace air at the end
(Reapeating always active cmnd block)
@summer inlet
/replaceitem entity @a[tag=admin,hasitem={item=totem_of_undying,location=slot.weapon.offhand,quantity=0}] slot.weapon.offhand 0 totem_of_undying
The hasitem isn’t exactly necessary here
It’ll only trigger the command if there isn’t a totem of undying present, so no need to specify
@summer inlet Would you be open to using scripts? One of my ideas is to apply a weakness effect to players after they attack others. This way, consecutive attacks would be prevented or at least significantly reduced.