Jump to content

[SOLVED] Why my money block skript is not working?


Goodplayer

Recommended Posts

on left click:
 if clicked block is cyan glazed terracotta:
  give golden nugget to player
 

It works for me on server, but for others like normal players don't get any golden nuggets. That is all my code, and I don't get any errors.

Edited by Goodplayer
solved
Link to comment
Share on other sites

1 hour ago, Goodplayer said:
on left click:
 if clicked block is cyan glazed terracotta:
  give golden nugget to player
 

It works for me on server, but for others like normal players don't get any golden nuggets. That is all my code, and I don't get any errors.

Hold on ill try fix it

Link to comment
Share on other sites

1 hour ago, Goodplayer said:
on left click:
 if clicked block is cyan glazed terracotta:
  give golden nugget to player
 

It works for me on server, but for others like normal players don't get any golden nuggets. That is all my code, and I don't get any errors.

It works for me, Deoped and opped 😕 I did change it to tabs tho so maybe this will work?

 

on left click:
    if clicked block is cyan glazed terracotta:
        give golden nugget to player

Link to comment
Share on other sites

Make sure there aren't any skripts or worldguard regions preventing people from interacting with blocks

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Or does this skript somehow prevent it?

options:
 permission: Irondoor.Open
on right click:
 if player is holding orange stained glass pane:
  if event-block is iron door:
   toggle event-block
   wait 1 second
   toggle event-block
  if event-block is iron trapdoor:
   toggle event-block
   wait 1 second
   toggle event-block
  if event-block is spruce door:
   toggle event-block
   wait 1 second 
   toggle event-block
 else:
  if player is holding light blue stained glass pane:
   if event-block is iron trapdoor:
    toggle event-block
    wait 1 second
    toggle event-block
  if event-block is spruce door:
   toggle event-block
   wait 1 second
   toggle event-block
  else:
   if player is holding blue stained glass pane:
    if event-block is spruce door:
     toggle event-block
     wait 1 second
     toggle event-block
    if event-block is iron door:
     toggle event-block
     wait 1 second
     toggle event-block
on right click:
 if player has permission "{@permission}":
  if event-block is iron door:
   toggle event-block
   wait 1 second
   toggle event-block
  else if event-block is iron trapdoor:
   toggle event-block
   wait 1 second
   toggle event-block
  else if event-block is spruce door:
   toggle event-block
   wait 1 second
   toggle event-block
on right click:
 if player doesn't have permission "{@permission}":
  if event-block is spruce door:
   cancel event

 

Link to comment
Share on other sites

  • Goodplayer changed the title to [SOLVED] Why my money block skript is not working?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...