Help to place block

  • 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.

Daniel Jensby

Member
May 3, 2020
10
1
0
Hello i need help to find out how i can make a skript so when a player place a Gold block named &3Gold Gen
Then i make console command /miningblocks add 120 STONE
On that gold block
 
  • Like
Reactions: WhiteWolf
Try using:
Code:
on right click on any block:
   if player is holding gold block:
      if event-item's name is "&3Gold Gen":
         make console execute command "/miningblocks add 120 STONE"
 
3097012800bf4613644c4595e5ffac1b.png

https://gyazo.com/3097012800bf4613644c4595e5ffac1b
 
Now its work... close ... it need to make the command on the block postion
[doublepost=1588692987,1588692283][/doublepost]on right click:
if player is holding gold block:
if event-block's name is "&3Gold Gen":
set {_loc} to location of event-block
make console execute command "/miningblocks add 120 STONE {_loc}"
 
Status
Not open for further replies.