Jump to content

thirtyfivegeckos

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by thirtyfivegeckos

  1. I don't know why, but whenever I load this skript into my world, the server crashes. My skript is supposed to be a 'Level 2 TNT cannon' that you can craft using the level 1 cannon (which works just fine), but it just crashes the server. Here is my skript: (sorry if it's very inefficient, I'm new to skripting)

    command /resetrecipetntstick2:
        permission: op
        trigger:
            wipe server crafting recipes
            send "&aAll recipes cleared"

    on load: 
        register new shaped recipe for a tnt of unbreaking named "&cCompressed TNT" using tnt, tnt, tnt, tnt, tnt, tnt, tnt, tnt, tnt
        register new shaped recipe for a stick named "&4Level 2 TNT Cannon" using tnt of unbreaking named "&cCompressed TNT", tnt of unbreaking named "&cCompressed TNT", tnt of unbreaking named "&cCompressed TNT", tnt of unbreaking named "&cCompressed TNT", stick named "&4TNT Cannon", tnt of unbreaking named "&cCompressed TNT", tnt of unbreaking named "&cCompressed TNT", tnt of unbreaking named "&cCompressed TNT", tnt of unbreaking named "&cCompressed TNT"

    on craft:
        player's inventory contains stick named "&4Level 2 TNT Cannon"
        broadcast "%player% has made a level 2 TNT cannon!"

    on arm swing:
        player has a stick named "&4&lLevel 2 TNT Cannon" in main hand
        shoot tnt from player at speed 1
        wait 20 ticks
        strike lightning at the last spawned tnt
        spawn 7 tnt at the last spawned tnt

×
×
  • Create New...