Skript

Discussion in 'Spigot Plugin Help' started by jskyjake2013, Dec 13, 2014.

  1. Hey guys I was told that with the plugin "Skript" you can make it so when you break a certain block it will run a console command and replace the block you broke.

    Example: Like lets say you broke a gold block well it will do /give (Player who broke the block) 371 1 then it would replace the block.
     
  2. I assume you wanna know how.

    Let me link you up with the best Skript developer ever.

    @nfell2009
     
  3. Code (Text):

    on break of gold block:
     execute console command "/give %player% 371 1"
     set event-block to <enter some block here>
     
     
    • Like Like x 3
  4. K thanks

    and for magenta wool would I put:

    Code (Text):
    on break of magenta wool:
    execute console command "/give %player% 371 1"
    set event-block to magenta wool
    Also could you give me and example of what my config for the skript would look like? @nfell2009
     
    #4 jskyjake2013, Dec 14, 2014
    Last edited: Dec 14, 2014
  5. FrostedSnowman

    Resource Staff

    I personally use Skript, it's amazing! The sky is the limit ( 256 to be exact )
     
    • Like Like x 2
    • Funny Funny x 2
  6. Can you give me example of what my config might look like?
     
  7. Could you also send a example of what the file "goldblock.sk" would look like inside because I am having some trouble with that
     
  8. Are you able to help?
     
  9. I wish I could, I'm just looking at the new posts for fun, looking at ideas....I'm not a coder though unfortunately.....too hard for me to learn
     
  10. I am using this for minecraft clash of clans so it is a must have lol
     
    • Like Like x 1
  11. Ok I have it working now!!! Thank you @nfell2009
     
    • Like Like x 1
  12. @nfell2009 I have on question tho if I wanted to make it when they hit the block What would I put I have tried

    Code (Text):
    on hit of gold block:
      execute console command "give %player%  371 1"
      set event-block to gold block
    Code (Text):
    on left click of gold block:
      execute console command "give %player%  371 1"
      set event-block to gold block
     
  13. Ohh ok I had a space so I guess that was the reason
     
    #14 jskyjake2013, Dec 14, 2014
    Last edited: Dec 14, 2014
  14. That wasn't the problem, you put "of gold block" instead of "on a gold block"
     
  15. Ohh ok
     
  16. FrostedSnowman

    Resource Staff

    @jskyjake2013 Read up on some tutorials on the Bukkit page, it should be under Skript -> Forums -> Tutorials.
     
    • Like Like x 1
  17. I'm sort of sorry