• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Chemically

New Member
Feb 27, 2019
7
0
0
24
Category: UHC

Suggested name: phead

Spigot/Skript Version: Paperspigot 1.8.8. Skript 2.2-dev36

What I want:
When people right click player heads while holding it in their inventories, I want it so it can not be placed at all on the ground or walls or anywhere. This is what I have currently but it is not working.

on rightclick holding player head:
if {hh} is true:
wait 1 tick
remove 1 player head from the player's inventory
apply regeneration 3 to the player for 5 seconds
apply speed 2 to the player for 10 seconds

on place of player head:
if {hh} is true:
cancel event

This still removes the head from the inventory and gives the effects but if you right click the ground to place the head, it'll place the head and consume it, ultimately making it infinite.

Ideas for commands: /phead

Ideas for permissions: phead.admin

When I'd like it by: Less then a day if possible.