does anyone know if its possible to give a player an item when they make a certain advancement?
I just can't find a way to do it. I'm using Skbee, PoaSk, skQuerey and skript gui
I just can't find a way to do it. I'm using Skbee, PoaSk, skQuerey and skript gui
Code:
#list of advancements and what they unlock
#Tidal - Throwaway joke "minecraft:adventure/throw_trident"
#aqua - the cutest predator "minecraft:husbandry/axolotl_in_a_bucket"
#Tectonica - whatever floats your goat "minecraft:hustbandry/ride_a_boat_with_a_goat"
#Gaea - caves and cliffs "minecraft:adventure/fall_from_world_height"
#Ignus - subspace bubble "minecraft:nether/fast_travel"
#Pyro - into fire "minecraft:nether/obtain_blaze_rod"
#Zephyr - blowback "minecraft:adventure/blowback"
#Ventus - who needs rockets "minecraft:adventure/who_needs_rockets"
on load:
set {_tidal} to "minecraft:adventure/throw_trident" parsed as advancement
set {_aqua} to "minecraft:husbandry/axolotl_in_a_bucket" parsed as advancement
set {_tectonica} to "minecraft:hustbandry/ride_a_boat_with_a_goat" parsed as advancement
set {_gaea} to "minecraft:adventure/fall_from_world_height" parsed as advancement
set {_ignus} to "minecraft:nether/fast_travel" parsed as advancement
on player advancement done:
if advancement progress of {_tidal} of player is done:
if {obt::tidal} = false:
give player 1 blue dye named "&1Tidal"
set {obt::tidal} to true
if advancement progress of {_aqua} of player is done:
if {obt::aqua} = false:
give player 1 blue dye named "&1Aqua"
if advancement progress of {_tectonica} of player is done:
if {obt::tectonica} = false:
give player 1 gray dye named "&8Tectonica"
if advancement progress of {_gaea} of player is done:
if {obt::gaea} = false:
give player 1 gray dye named "&8Gaea"
if advancement progress of {_ignus} of player is done:
if {obt::ignus} = false:
give player 1 red dye named "&4Ignus"
command /craft [<string>] [<string>]:
permission: crafts.op
trigger:
if arg-1 is "enable":
if arg-2 is "tidal":
set {obt::tidal} to false