Skript Version (do not put latest): seems to be custom, /sk update check says "You're currently running custom Skript version" and I'm using a server host, not sure if their version of Skript is updated or not
Skript Author: N.A
Minecraft Version: 1.14.4
---
Code:
Particular portion of it:
if held item is emerald block:
name of held item is "Block of Emerald":
remove arg-1 of emerald block named "Block of Emerald" from the player
loop argument times:
add 10000 to the player's account
Full code:
on load:
register new shapeless recipe for glass named "&b&lSpecial Glass" using glass, glass, glass, glass, glass, glass, glass, glass, glass
register new shapeless recipe for emerald block using diamond block, diamond block, diamond block, diamond block, diamond block, diamond block, diamond block, diamond block, diamond block
register new shapeless recipe for emerald block named "&a&lEpic Emerald Block" using emerald block, emerald block, emerald block, emerald block, emerald block, emerald block, emerald block, emerald block, emerald block
command /csell <number>:
trigger:
if held item is glass:
name of held item is "&b&lSpecial Glass":
remove arg-1 of glass named "&b&lSpecial Glass" from the player
loop argument times:
add 625 to the player's account
if held item is emerald block:
name of held item is "Block of Emerald":
remove arg-1 of emerald block named "Block of Emerald" from the player
loop argument times:
add 10000 to the player's account
if held item is diamond block:
remove arg-1 of diamond block from the player
loop argument times:
add 1000 to the player's account
if held item is sand:
remove arg-1 of sand from the player
loop argument times:
add 31.25 to the player's account
if held item is glass:
if the 1st line of the lore of the player's tool is "&bStandard Item":
remove arg-1 of glass with lore "&bStandard Item" from the player
loop argument times:
add 62.5 to the player's account
# Copied from https://www.spigotmc.org/threads/skript-cobble-generator.266900/#post-2620323
command /sandgenerator:
trigger:
if player has permission "generator.sand":
give 1 cobblestone named "&bSand generator" to player
else:
send "&cYou don't have permission for this."
on place:
if player's tool is cobblestone named "&bSand generator":
add location of event-block to {gen.blocks::*}
send "&bGenerator created"
else:
stop
on break:
if player's tool is wooden shovel named "&bGenerator remover":
remove location of event-block from {gen.blocks::*}
every 1 second:
loop {gen.blocks::*}:
chance of 100%:
set {_position} to loop-value
set block at {_position} to sand
# You can repeat this with custom chances and custom blocks
command /checkrecipes:
trigger:
open chest with 1 row named "&bRecipe(s)" to player
wait 1 tick
format slot 0 of player with glass named "Special Glass" with lore "" to run [make player execute command "checkrecipe specialglass"]
format slot 1 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 2 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 3 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 4 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 5 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 6 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 7 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 8 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
command /checkrecipe <text>:
trigger:
if arg 1 is "specialglass":
open chest with 5 row named "&bRecipe(s)" to player
wait 1 tick
format slot 10 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 11 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 12 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 19 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 20 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 21 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 28 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 29 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 30 of player with glass named "" with lore "&bSpecial Item" to close then run ""
on break of stone:
if player is in "adventure":
set event-block to bedrock
give 1 cobblestone to player
wait 5 seconds
set event-block to stone
on break of coal ore:
if player is in "adventure":
set event-block to bedrock
give 5 coal to player
wait 5 seconds
set event-block to coal ore
on break of gold ore:
if player is in "adventure":
set event-block to bedrock
give 1 gold ore to player
wait 7 seconds
set event-block to gold ore
on break of diamond ore:
if player is in "adventure":
set event-block to bedrock
give 2 diamond to player
wait 2 minutes
set event-block to diamond ore
on break of emerald ore:
if player is in "adventure":
set event-block to bedrock
give 1 emerald to player
wait 5 minutes
set event-block to emerald ore
on break of iron ore:
if player is in "adventure":
set event-block to bedrock
give 2 iron ore to player
wait 15 seconds
set event-block to iron ore
on break of lapis ore:
if player is in "adventure":
set event-block to bedrock
give 5 lapis lazuli to player
wait 15 seconds
set event-block to lapis ore
command /anvil:
trigger:
open anvil window to player
I want something to differentiate so that:
When I hold Block of Emerald, it doesn't sell Epic Emerald Block.
Your help is appreciated.
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? No
What other methods have you tried to fix it? None
Addons using (including versions): SkQuery, Skellett 1.9.5a-minehut, TuSKe, skRayFall
I am not sure about the versions, I'm using Minehut (a server hoster) and I used their dashboard to install the plugin.
Cheers,
Comstepr
Skript Author: N.A
Minecraft Version: 1.14.4
---
Code:
Particular portion of it:
if held item is emerald block:
name of held item is "Block of Emerald":
remove arg-1 of emerald block named "Block of Emerald" from the player
loop argument times:
add 10000 to the player's account
Full code:
on load:
register new shapeless recipe for glass named "&b&lSpecial Glass" using glass, glass, glass, glass, glass, glass, glass, glass, glass
register new shapeless recipe for emerald block using diamond block, diamond block, diamond block, diamond block, diamond block, diamond block, diamond block, diamond block, diamond block
register new shapeless recipe for emerald block named "&a&lEpic Emerald Block" using emerald block, emerald block, emerald block, emerald block, emerald block, emerald block, emerald block, emerald block, emerald block
command /csell <number>:
trigger:
if held item is glass:
name of held item is "&b&lSpecial Glass":
remove arg-1 of glass named "&b&lSpecial Glass" from the player
loop argument times:
add 625 to the player's account
if held item is emerald block:
name of held item is "Block of Emerald":
remove arg-1 of emerald block named "Block of Emerald" from the player
loop argument times:
add 10000 to the player's account
if held item is diamond block:
remove arg-1 of diamond block from the player
loop argument times:
add 1000 to the player's account
if held item is sand:
remove arg-1 of sand from the player
loop argument times:
add 31.25 to the player's account
if held item is glass:
if the 1st line of the lore of the player's tool is "&bStandard Item":
remove arg-1 of glass with lore "&bStandard Item" from the player
loop argument times:
add 62.5 to the player's account
# Copied from https://www.spigotmc.org/threads/skript-cobble-generator.266900/#post-2620323
command /sandgenerator:
trigger:
if player has permission "generator.sand":
give 1 cobblestone named "&bSand generator" to player
else:
send "&cYou don't have permission for this."
on place:
if player's tool is cobblestone named "&bSand generator":
add location of event-block to {gen.blocks::*}
send "&bGenerator created"
else:
stop
on break:
if player's tool is wooden shovel named "&bGenerator remover":
remove location of event-block from {gen.blocks::*}
every 1 second:
loop {gen.blocks::*}:
chance of 100%:
set {_position} to loop-value
set block at {_position} to sand
# You can repeat this with custom chances and custom blocks
command /checkrecipes:
trigger:
open chest with 1 row named "&bRecipe(s)" to player
wait 1 tick
format slot 0 of player with glass named "Special Glass" with lore "" to run [make player execute command "checkrecipe specialglass"]
format slot 1 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 2 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 3 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 4 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 5 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 6 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 7 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
format slot 8 of player with light gray glass named "lol" with lore "lol" to close then run "warp bagel"
command /checkrecipe <text>:
trigger:
if arg 1 is "specialglass":
open chest with 5 row named "&bRecipe(s)" to player
wait 1 tick
format slot 10 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 11 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 12 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 19 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 20 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 21 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 28 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 29 of player with glass named "" with lore "&bSpecial Item" to close then run ""
format slot 30 of player with glass named "" with lore "&bSpecial Item" to close then run ""
on break of stone:
if player is in "adventure":
set event-block to bedrock
give 1 cobblestone to player
wait 5 seconds
set event-block to stone
on break of coal ore:
if player is in "adventure":
set event-block to bedrock
give 5 coal to player
wait 5 seconds
set event-block to coal ore
on break of gold ore:
if player is in "adventure":
set event-block to bedrock
give 1 gold ore to player
wait 7 seconds
set event-block to gold ore
on break of diamond ore:
if player is in "adventure":
set event-block to bedrock
give 2 diamond to player
wait 2 minutes
set event-block to diamond ore
on break of emerald ore:
if player is in "adventure":
set event-block to bedrock
give 1 emerald to player
wait 5 minutes
set event-block to emerald ore
on break of iron ore:
if player is in "adventure":
set event-block to bedrock
give 2 iron ore to player
wait 15 seconds
set event-block to iron ore
on break of lapis ore:
if player is in "adventure":
set event-block to bedrock
give 5 lapis lazuli to player
wait 15 seconds
set event-block to lapis ore
command /anvil:
trigger:
open anvil window to player
I want something to differentiate so that:
When I hold Block of Emerald, it doesn't sell Epic Emerald Block.
Your help is appreciated.
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? No
What other methods have you tried to fix it? None
Addons using (including versions): SkQuery, Skellett 1.9.5a-minehut, TuSKe, skRayFall
I am not sure about the versions, I'm using Minehut (a server hoster) and I used their dashboard to install the plugin.
Cheers,
Comstepr