#Pressure plate with name on death msg

1 messages · Page 1 of 1 (latest)

sour delta
#

then do the name of it

#

or however you store the name, access it

#

well, how are you storing it?

#

oh, as an item only.

#

okay, then when you place it you'll want to store the player that placed it. I recommend setting a string tag for the block with skbee

#

thats one way, but that would use a lot of variables

#

you would have a variable for each pressure plate. that can be a lot of wasted sotrage space

sour delta
#

with skbee. you can find the download for skbee and it's wiki on shane bee's github page

#

okay, then go to the wiki page outlining NBT

#

the player's UUID

#

as the name can change

#

set string tag "placedBy" of NBT compound of %someBlock% to event-player's UUID

#

then when they step on it, just get that tag, and then youll be able to determine who placed it

#

no

#

the same expression;

#

whatever you set it to

sour delta
#

blocks dont have names, only items

#

although, since the name is just %player's name%'s trap, you can get the player's name from the NBT tag, then just add "'s trap" to the end

#

again, UUID would be best

#

the tag for the block

#

no

sour delta
sour delta