Trying to use an old script on 1.20.4 which used right click signs as one of its features to activate something. But it seems now that when you right click a sign in this minecraft version you go onto a menu to edit signs, this stops my script basically from working. I was wondering how i could fix this? Like could i disable sign editing/that menu that pops up and hope it works?
#(mineshaft87) Right clicking signs
76 messages · Page 1 of 1 (latest)
(mineshaft87) Right clicking signs
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
Wow i don't think i've seen your name color in months lol, it caught me off guard for a second
anyway you should be able to just cancel the event
do you know how to do that?
thanks for the quick response ! i comssioned this a while ago, i dont know how to create that
!haste
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
can you share the script?
i was hoping someone might be able to kindly create that for me if its a quick one line thing
i did pay quite a lot for it
could i pm it
Well, the line is
- determine passively cancelled
but I can't tell you where to put that without context
oh i see
could i send you the hate link
of it privately
just so its not released publicly if thats ok
if not il paste it here
Who wrote that script for you?
Yeah lol
should i ask mergu i guess, theres quite a lot of sign right clicking
like with no item, shift right clicking no item, right clicking with flint item
il pm mergu see if they are down for quick edit
You can also use honeycomb to wax a sign (which prevents editing)
ah yes i did try that, and weirdly that didnt work either. signs seem to have changed in some way, maybe denizen doesn't listen out for the updated sign stuff (no idea how the plugin works regarding that). Thanks for the idea though
Huh, that's weird. I ran into the same problem, worked flawlessly for me
i tried it on my 1.19.4 world and the script worked
ahh
yeah its odd it just didn't read me right clicking the sign in anyway in my 1.20.4 server
Maybe try updating to the latest dev/release build?
i will check to see if i've got that, pretty sure it was but il check!
yeah so its the latest spigot version
could try the developmental builds
i guess
When I got it to work I was running the latest paper and denizen dev build
ah! il DL a dev build
But yeah if that doesn't work you can determine cancel it with an event
Ok so slightly weird, changing to the dev version did allow me to right click fire my cannon i had made and 'claimed' by right clicking the sign with a flint.
but it didnt let me right/left click or shift right left click while holding the flint item to alter the angle of firing.
and also when i tried making a new cannon, it didnt allow me to right click the sign to claim it with the flint item.
But on my old cannon with the already claimed sign from the spigot denizen 1.20.4 version it did allow me to claim the cannon but not shoot it.
I dont know if that made much sense without knowing the script well.
But yeah i can right click the left cannon to shoot tnt, but right clicking the right cannon sign with a flint item to claim and create the tnt cannon... did not work
!e player opens sign
Required Plugins or Platforms
Paper
Group
Paper
Event Lines
player opens sign
Triggers
When a player opens a sign (eg after placing a sign, or by clicking on it to edit it).
Has Player
Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
Context
<context.side> returns an ElementTag of the side of the sign that was clicked (FRONT or BACK).
<context.cause> returns an ElementTag of reason the sign was opened - see <@link url https://jd.pa...
<context.location> returns a LocationTag of the sign's location.
Has Known Location
True - this adds switches in:<area> + location_flagged:<flag name>.
Cancellable
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
Yeah Its hard to follow because I'm unfamiliar with the script
But here's my guess for which event to determine as cancelled
Also keep in mind this event says it requires paper
ah ok cool so looks like it might require that, il wait a few more days and see if mergu comes on. Even the right clicking or left clicking while holding the flint item doesnt change the arc of the claimed cannon, which doesnt have anything to do with right clicking the actual sign, so yeah might require some more work
thanks for the help though
looking at this script its got more complex code, im just a total novice with this plugin.
then the flint thing with it reading nearby claimed signs is something else in itself i believe
theres more lines then that for events but yh
You should send it with a pastebin:
Use this page to make a script paste that you can share.
can i pm you it, got the paste link. EDIT: Thanks Avi for helping very generous, script is mostly functional now!
sure
why make yourself do this
it's both easier and better to do it in the script
Generally, I'm cautious to use if statements (one would be required to only prevent editing on the event). But yeah, you're right, I ended up helping them with determining an outcome instead
I'm sorry but are you editing this in notepad???
Also, I think this is resolved, I solved the issue when mineshaft messaged me
did it just to show the code, ive got that software your meant to edit it with
yeah Avi did a great job fixed most of it
Oh I see. ( Might be better just to SS vs code instead lol )
yeah my bad! the only hiccup is the remote altering of the sign and firing of the cannon via right clicking and shift left/right clicking with the defined flint item doesnt currently work
il see if mergu is on again if he might be down for helping me update that bit
Thread Closing Reminder
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@hard nimbus