karlip_a Posted July 5, 2021 Share Posted July 5, 2021 variables: {%player%.golemeffects} = false {%player%.blazeborn} = false {%player%.pillager} = false {%player%.rick} = false {%player%.tp1} = 0 {%player%.tp2} = 0 on first join: if name of player is not "123": set {golemeffects} to false set {blazeborn} to false set {pillager} to false set {rick} to false remove slowness from player remove night vision from player remove slow falling from player remove fire resistance from player remove 1 gold ingot named "&dAtmos" from player open virtual chest inventory with size 1 named "e" to player format gui slot 0 of player with iron chestplate named "Golem" to run: close player's inventory teleport player to location at (-123, 70, -5) in world "world" set {golemeffects} to true format gui slot 2 of player with player head named "Human" to run: close player's inventory set {golemeffects} to false format gui slot 4 of player with blaze rod named "Blazeborn" to run: close player's inventory teleport player to location at (-123, 70, -5) in world "world_nether" set {blazeborn} to true format gui slot 6 of player with crossbow named "pillager" to run: close player's inventory set {pillager} to true format gui slot 8 of player with redstone block named "Rick" to run: close player's inventory give a compass named "Save" to player give a gold ingot named "Home" to player give a blaze rod named "&5Plasma Shooter" to player set {rick} to true on right click: if name of player's held item is "&dAtmos": set {golemeffects} to false set {blazeborn} to false set {pillager} to false set {rick} to false remove slowness from player remove night vision from player remove slow falling from player remove fire resistance from player remove 1 gold ingot named "&dAtmos" from player open virtual chest inventory with size 1 named "e" to player format gui slot 0 of player with iron chestplate named "Golem" to run: close player's inventory teleport player to location at (-123, 70, -5) in world "world" set {golemeffects} to true format gui slot 2 of player with player head named "Human" to run: close player's inventory set {golemeffects} to false format gui slot 4 of player with blaze rod named "Blazeborn" to run: close player's inventory teleport player to location at (-123, 70, -5) in world "world_nether" set {blazeborn} to true format gui slot 6 of player with crossbow named "pillager" to run: close player's inventory set {pillager} to true format gui slot 8 of player with redstone block named "Rick" to run: close player's inventory give a compass named "Save" to player give a gold ingot named "Home" to player give a blaze rod named "&5Plasma Shooter" to player set {rick} to true on right click: if {rick} is true: if name of player's held item is "&5Plasma Shooter": strike lightning effect at the targeted block shoot a fireball from player at speed 15 on damage: if name of attacker's held item is "&5Plasma Shooter": add 1 to the damage if {rick} is true: if victim is player: cancel the event on left click: if {rick} is true: if name of player's held item is "Save": set {tp1} to position of targeted block on left click: if name of player's held item is "Home": if {rick} is true: set {tp2} to position of targeted block on right click: if name of player's held item is "Home": if {rick} is true: teleport player to {tp2} on right click: if name of player's held item is "Save": if {rick} is true: teleport player to {tp1} on right click: if {pillager} is true: shoot an arrow wait 0.1 seconds shoot an arrow on player's held item change: if {blazeborn} is true: apply slow falling 10 to the player for 10 days apply fire resistance 10 to the player for 10 days on break of stone: if {golemeffects} is true: cancel the event set the event-block to air drop a cobblestone at event-block on player's held item change: if {golemeffects} is true: apply haste 3 to the player for 10 days apply slowness 2 to the player for 10 days apply strength 2 to the player for 10 days apply night vision 10 to the player for 10 days on break of log: if {golemeffects} is true: loop blocks upwards: drop the loop-block-1 at event-block set the loop-block to air command /atmos: permission: op trigger: give a gold ingot named "&dAtmos" to player so when someone picks a origin everyone in the server gets the effects of it please help Link to comment Share on other sites More sharing options...
StarBunnie Posted July 5, 2021 Share Posted July 5, 2021 4 hours ago, karlip_a said: so when someone picks a origin everyone in the server gets the effects of it please help The reason for that is that all variables are global and not player based Global {golemeffects} Player based {golemeffects::%player's uuid%} Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
karlip_a Posted July 6, 2021 Author Share Posted July 6, 2021 thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now