#(mineshaft87) Right clicking signs

76 messages · Page 1 of 1 (latest)

hard nimbus
#

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?

urban krakenBOT
#

(mineshaft87) Right clicking signs

urban krakenBOT
#

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.

atomic maple
#

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?

hard nimbus
#

thanks for the quick response ! i comssioned this a while ago, i dont know how to create that

atomic maple
#

!haste

half compassBOT
atomic maple
#

can you share the script?

hard nimbus
#

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

atomic maple
hard nimbus
#

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

gilded shuttle
#

Who wrote that script for you?

hard nimbus
#

mergu

#

did a great job

#

this was a few years ago

#

they still around?

atomic maple
#

Yeah lol

hard nimbus
#

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

craggy kestrel
#

You can also use honeycomb to wax a sign (which prevents editing)

hard nimbus
craggy kestrel
#

Huh, that's weird. I ran into the same problem, worked flawlessly for me

hard nimbus
#

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

craggy kestrel
#

Maybe try updating to the latest dev/release build?

hard nimbus
#

i will check to see if i've got that, pretty sure it was but il check!

hard nimbus
#

could try the developmental builds

#

i guess

craggy kestrel
#

When I got it to work I was running the latest paper and denizen dev build

hard nimbus
#

ah! il DL a dev build

craggy kestrel
#

But yeah if that doesn't work you can determine cancel it with an event

hard nimbus
#

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

craggy kestrel
#

!e player opens sign

half compassBOT
# craggy kestrel !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.

craggy kestrel
#

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

hard nimbus
#

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

craggy kestrel
#

It's really easy to do

#
    - determine passively cancelled```
hard nimbus
#

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

craggy kestrel
hard nimbus
craggy kestrel
#

sure

atomic maple
#

it's both easier and better to do it in the script

craggy kestrel
#

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

fervent iris
craggy kestrel
#

Also, I think this is resolved, I solved the issue when mineshaft messaged me

hard nimbus
#

yeah Avi did a great job fixed most of it

fervent iris
#

Oh I see. ( Might be better just to SS vs code instead lol )

hard nimbus
#

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

uncut condorBOT
#
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