22 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by godlyreaper#0
if you wanted to make for sure what ive seen most maps do is either make it so u have to walk onto an area
I thought target selector @s was for the person executing the lever
or interact with some other interaction entity
@s is whatever is actually running the command
so if you run a command @s its you
if you execute as a command as a creeper @s its the creeper
the command block isnt an entity
so it just does nothing
okay so how do I use an "interaction entity"
so I can pass the player down to these command blocks
theres entities that players can click and you can see who clicked it
so you could put it over a block or sign or smthn
and when a player clicks it you can run a command or whatever
you could also give them a item they have to right click using like a carrot on a stick
and then most people just retexture it later
so a lever on its own doesn't work
how do I do it via sign/block?
interaction entities
does a sign give a pulse?
Minecraft Wiki
Interaction
Interaction entities are a technical entity, useful for map or data pack creators to see who the last player to click on a certain spot is. They can only be created with the /summon or /execute summon commands.
Interaction entities are invisible, invincible and of a custom size. Their boundary box can be viewed via the F3 + B debug shortcut.
or are you referring to a plugin
you could put a interaction entity around the signs hitbox
ah, could I do this with the lever too?
yeah with the lever
signs iirc have their own click event system
so you may be able to do that without using an interaction entity
how do I add this interaction entity to my system, or do I have to make one for each command
and then hook all of them up to the lever area
this tells you more abt how to use it
so if I wanted to use this on my tp, how do I use the variable?
you detect the player right clicking recently
you tp
yes I understand with /data get entity
but how does that hook up to tp
what would the command look like?
you loop that and if it finds that a player right clicked entity
then execute a command
/execute if
will come in handyill look up a youtube video, sounds like I need to do some reworking
if I use a sign, will right clicking the sign pulse a signal?
no
you have to set a click event command on it
which will be ran