Description: This item/world/task script is a script that creates an item called "Quantum Wand of Deity" that is basically like the Wabber Jack from the Elder Scrolls 5, Skyrim.
This is a very powerful wand with few safe guards. What it does is change whatever the player is looking at into a random entity or placed block. Let craziness reign as a pig is turned into a ghast fire ball and a tree block into a placed torch.
There are a couple safe guards I put in but can easily be changed:
1) Will not affect players or npcs
2) Is set for admin use only
Craft it by putting two blaze rods and a nether portal block in the shape of a shovel.
Quantum_Wand_of_Deity:
type: item
material: i@369
display name: <&3>Quantum Wand of Deity
lore:
- <&3>This wand teams with an ancient Deified power
enchantments:
recipe:
- i@air|i@90|i@air
- i@air|i@369|i@air
- i@air|i@369|i@air
no_id: false
bound: true
GT_OP_Quantum_Wand_of_Deity:
type: world
events:
on player right clicks with i@Quantum_Wand_of_Deity:
- if !<player.is_op> queue clear
- runtask "script:GT_OP_Quantum_Wand_of_Deity_Task""context:<^context.args>|<^context.playerlookloc>"
GT_OP_Quantum_Wand_of_Deity_Task:
type: task
context: player|playerlookloc
Requirements:
Mode: None
Script:
- ^if <player.target.is_player> queue clear
- ^if <player.target.is_npc> queue clear
- ^if <player.target.type> = entity {
- ^flag player quantum_aim_location:<e@<player.target.eid>.location>
- ^remove e@<player.target.eid> l@<player.location.cursor_on>
- ^spawn random l@<player.flag[quantum_aim_location]>
- ^playsound l@<player.flag[quantum_aim_location]> sound:anvil_land
- ^playsound l@<player.flag[quantum_aim_location]> sound:level_up
- ^playeffect l@<player.flag[quantum_aim_location]> effect:HUGE_EXPLOSION VISIBILITY:256.0
- ^playeffect l@<player.flag[quantum_aim_location]> effect:FLAME VISIBILITY:256.0}
else {
- ^flag player quantum_aim_location:<player.target.location>
- ^flag server quantum_block_to_change:<util.random.int[<1>].to[<159>]>
- ^modifyblock l@<player.location.cursor_on> m@<server.flag[quantum_block_to_change]>
- ^playsound l@<player.location.cursor_on> sound:anvil_land
- ^playsound l@<player.location.cursor_on> sound:level_up
- ^playeffect l@<player.location.cursor_on> effect:HEART VISIBILITY:256.0}