Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix send name of vehicle and push #2807

Closed
Misio12320 opened this issue Feb 4, 2020 · 7 comments
Closed

Fix send name of vehicle and push #2807

Misio12320 opened this issue Feb 4, 2020 · 7 comments

Comments

@Misio12320
Copy link

Description

I want to create when player enter a region with minecart: it should push him up with it but does not work..

Steps to Reproduce

Write code
on enter region "wow":
send name of player's vehicle
push player's vehicle upwards with speed 5.0

Expected Behavior

Should send name of player's vehicle but nothing happens.

Errors / Screenshots

Nah

Server Information

  • Server version/platform: This server is running Paper version git-Paper-90 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
  • Skript version: Skript version 2.5-alpha1

Additional Context

Nah..

@Misio12320 Misio12320 changed the title Fix vehicle push Fix send name of vehicle and push Feb 4, 2020
@Misio12320
Copy link
Author

Okay this does not work too:
on rightclick:
cancel event
send name of clicked entity

@ShaneBeee
Copy link
Contributor

Are you sure that event is even firing?

your code:
on enter region "wow":

event:
(enter[ing]|leav(e|ing)|exit[ing]) [of] ([a] region|[[the] region] %regions%)

this event calls for a region not a string. I'm almost certain your event is not firing the way you have written it.

@Misio12320
Copy link
Author

Okay this does not work too:
on rightclick:
cancel event
send name of clicked entity

Why it does not send name, huh?

Are you sure that event is even firing?

your code:
on enter region "wow":

event:
(enter[ing]|leav(e|ing)|exit[ing]) [of] ([a] region|[[the] region] %regions%)

this event calls for a region not a string. I'm almost certain your event is not firing the way you have written it.

I always write event on enter region "": and works fine. can't understand this event: 'on enter region wow' (Bum.sk, line 36: on enter region wow:')

@ShaneBeee
Copy link
Contributor

Why it does not send name, huh?

I believe you need to use on right click on entity

I always write event on enter region "": and works fine. can't understand this event: 'on enter region wow' (Bum.sk, line 36: on enter region wow:')

I'm not sure then. Region support isn't the best within Skript. Debug your code and see if that event is even firing.

@Misio12320
Copy link
Author

"Unfortonetly" works...
2.How to debug

@Misio12320
Copy link
Author

Misio12320 commented Feb 5, 2020

Oh. The rightclick does not works
on right click on entity:
send "%name of clicked entity%" to player
sends . + send name of clicked entity to player : sends nothing 👏

@iOshawott
Copy link

iOshawott commented Feb 6, 2020

maybe event-entity is not working? If so then it seems to be related to #2771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants