Jump to content

ApexSplat

Member
  • Posts

    145
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ApexSplat

  1. changing an attribute: https://skripthub.net/docs/?id=4272 attribute types: https://skripthub.net/docs/?id=4280
  2. you have to use it like "" so you need 2 of them so ""text"" would execute "test"
  3. debug your code, work out which line isn't being executed, then you know what line isn't being executed and can fix it or you can reply here with which line isn't being executed
  4. use vanilla guis good tutorial: https://forums.skunity.com/threads/vanilla-guis.8939/
  5. https://skripthub.net/docs/?id=1072 this is called when someone uses an elytra. you just need to cancel it when someone is in combat
  6. Well, it should be working. Are you sure you are changing the right variable?
  7. on join: set {_online} to amount of online players set {_power} to 1 set {_num} to 2 while {_num} != {_online}: wait 1 tick set {_num} to {_num}^{_power} if {_num} > {_online}: stop add 1 to {_power} execute console command "/" # Put the command executed for the key all here not tested
  8. what if there are 8 players and you need 16 online but then 7 people leave and there is 1. does the keyall reset and they need 2 players for a key all again?
  9. on right click with pickaxe: set metadata tag "pickaxe" of player to chest inventory with 5 rows named "&6&lUpgrade": set {_x} to 0 loop 54 times: set slot {_x} of metadata tag "pickaxe" of player to black stained glass pane add 1 to {_x} set {_level} to level of efficiency of player's tool set {_type} to type of player's tool set slot 22 of metadata tag "pickaxe" of player to {_type} of efficiency {_level} + 1 named "&6&lUpgrade" open (metadata tag "pickaxe" of player) to player on inventory click: if event-inventory = (metadata tag "pickaxe" of player): cancel event if index of event-slot is 22: set {_level} to level of efficiency of player's tool if {_level} isn't 5: enchant player's tool with efficiency {_level} + 1 else: send "You have reached the max upgrade of 5!" close player's inventory not tested
  10. well deleting the .jar file and any plugin folders should delete it. it would be nice if there was a video of you deleting it and restarting and it showing up again
  11. it needs to be arg 1 not {%arg 1%}
  12. If you want to do it in skript have a look at https://github.com/ShaneBeee/SkBee/wiki/Shaped-Recipe
  13. options: permission: skript.permission command /freerank: trigger: if player has permission "{@permission}": execute console command "/lp user %player% parent set free" else: send "&c&lYou already have a rank!" change skript.permission to the permission required to execute the command
  14. the 3rd line isn't inside the if statement so will always be executed on a right click regardless if they are holding a book
  15. https://skripthub.net/docs/?id=1103 the example given is: teleport player to 0.5, 0.5, 0.5 in world "world" player = the entity you want to teleport so for example if you want to teleport the last spawned entity use last spawned entity 0.5, 0.5, 0.5 = the coordinates you want to teleport the entity to so in your case it would be 63, 105, 29 "world" = the world you want to teleport the entity to so as an example if you want to teleport them to the nether it would be "world_nether" Now just put it inside an on click event and make sure to teleport the target entity: on click: if target entity is a player: if name of player's held item is "&6Jail Hammer": # insert teleport here
  16. Use this https://skripthub.net/docs/?id=3025, metadata or variables
  17. set {_i} ro random integer between 1 and 4 if {_i} is 1: drop 1 diamond else if {_i} is 2: drop 1 dirt else if {_i} is 3: drop 1 stone else if {_i} is 4: drop 1 gold ingot
  18. Well the problem here is if you are really lucky, you can get all 4 items. You can set a local var to a random integer between 1 and 4 as that is the same as 25% chance for each and if it is 1 they get diamond, 2 they get dirt etc
×
×
  • Create New...