How to work around adventure mode "on left click"?

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Hyao

Active Member
Apr 1, 2017
73
4
8
Yeah, yeah, bad title, I had no other ideas.

Basically: In adventure mode, clicking on blocks doesn't trigger the on left click event. (rightclick works) Is there a fix, or a workaround?

I need something that works like adventure mode:

- (preferably) no block borders
- no block break animation or even trigger (so things like flower pots dont break after 1 hit. It gets annoying when I'm trying to make a flower pot destruction system but when you try to destroy pots it just makes a big sound-mess because you're not actually allowed to break them, skript breaks them for you.)
- no block break (duh)

AND so that it still works with on left click when aiming at blocks.

Is this possible? Or am I just stuck with the fact that adventure mode hates me, and flower pots have to be my death? Thanks for any help I can get.
 
i don't think there is a way to do it can you explain to me why you don't want or can't use gamemode 2
 
i don't think there is a way to do it can you explain to me why you don't want or can't use gamemode 2

As I said, on left click doesn't work when in adventure mode and when clicking on blocks, only the air/mobs. I can't use survival because of

1) block-break-jump glitches

and 2) when clicking on flower pots(which are destroyable, but only by the script - it's hard to explain what i've got. TL;DR: player isn't allowed to destroy by hand, but still destroyable with on left click>detection for pots.) Flower pots are very spammy when you cancel their break, since they're a 1-hit-break type of block, so it gets annoying not being able to use adventure mode to counteract these two points. (there's more, but you get the point.)
[doublepost=1491833686,1491345330][/doublepost]Bumping, still need this. Are there really no events happening when the player left clicks on blocks in adventure mode? Wynncraft does it, so there must be a way, right?
 
As I said, on left click doesn't work when in adventure mode and when clicking on blocks, only the air/mobs. I can't use survival because of

1) block-break-jump glitches

and 2) when clicking on flower pots(which are destroyable, but only by the script - it's hard to explain what i've got. TL;DR: player isn't allowed to destroy by hand, but still destroyable with on left click>detection for pots.) Flower pots are very spammy when you cancel their break, since they're a 1-hit-break type of block, so it gets annoying not being able to use adventure mode to counteract these two points. (there's more, but you get the point.)
[doublepost=1491833686,1491345330][/doublepost]Bumping, still need this. Are there really no events happening when the player left clicks on blocks in adventure mode? Wynncraft does it, so there must be a way, right?
There is a spigot plug-in that fixes THE block glich And for THE flowerpot Maby if you use on any movement: event And THE check that THE target block is a flower pot set THE gamemode of THE player To 2 And if not so To survival mode?
 
There is a spigot plug-in that fixes THE block glich And for THE flowerpot Maby if you use on any movement: event And THE check that THE target block is a flower pot set THE gamemode of THE player To 2 And if not so To survival mode?

I could try that.. but then again, it's more just the feeling of not having any borders or breaking particles. Still looking for an event, it needs to exist! There's no way that it just doesn't exist. Thanks for the block-glitch plugin tip, though.
 
The left click doesn't work for adventure mode because the client doesn't send this event to the server, as it is a proper feature of this gamemode.
 
wait i might have found a sollution can you try this. Didn't test

code_language.skript:
On block damage:
   Set gamemode of player To adventure
   Wait 1 tick
   Set gamemode of player To survival
 
wait i might have found a sollution can you try this. Didn't test

code_language.skript:
On block damage:
   Set gamemode of player To adventure
   Wait 1 tick
   Set gamemode of player To survival
Yeah but no, I mean, try to hold down LMB and look into the sky, then look down still holding LMB, you still break blocks. So it just sort of removes the block border for faster than the human eye can perceive and you still break the block.
 
Yeah but no, I mean, try to hold down LMB and look into the sky, then look down still holding LMB, you still break blocks. So it just sort of removes the block border for faster than the human eye can perceive and you still break the block.
try increasing the 1 tick to 1 second and look if it works. then decrease it by 1 tick each time so start with 20 ticks and then 19 etc till you have the least amount of time
 
Status
Not open for further replies.