Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::section config
- name: Advanced Note Blocks
- include-success: false
- shape: wall
- max-height: 16
- section-line-break: false
- #=====Customization Options=====#
- #
- extend-octave-limit: true
- # Set to true if you want to allow notes two octaves
- # outside of the default Minecraft range.
- #
- include-pling: true
- # Set to true if you want to include
- # the unused "pling" instrument
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- #
- ::section before
- scoreboard objectives add nbi_note dummy
- scoreboard objectives add nbi_instr dummy
- scoreboard objectives add nbi_success dummy
- scoreboard objectives add sw_slot dummy Selected Item Slot
- scoreboard objectives add sw_slotBuffer dummy Selected Item Slot Buffer
- scoreboard objectives add sw_change dummy Selected Item Slot Change
- ::section after
- tellraw @a [{"text":"\n\n Advanced Note Blocks have been successfully installed!\n","color":"dark_green","bold":true}," "," "," "," ",{"text":" created by Energyxxer\n\n","color":"green","bold":false,"italic":true}]
- ::section assign
- :R:
- :MULTI:
- iterations:9
- !s#:2;0,8
- scoreboard players set @a sw_slot %s {SelectedItemSlot:%s}
- $newline
- ::section difference
- :R: execute @a[score_sw_slotBuffer_min=0] ~ ~ ~ scoreboard players operation @p sw_change = @p sw_slotBuffer
- execute @a[score_sw_slotBuffer_min=0] ~ ~ ~ scoreboard players operation @p sw_change -= @p sw_slot
- execute @a[score_sw_slot_min=0] ~ ~ ~ scoreboard players operation @p sw_slotBuffer = @p sw_slot
- scoreboard players set @a[score_sw_change_min=5] sw_change -1
- scoreboard players set @a[score_sw_change=-5] sw_change 1
- scoreboard players tag @a[tag=sw_up] remove sw_up
- scoreboard players tag @a[tag=sw_down] remove sw_down
- scoreboard players tag @a[score_sw_change_min=1] add sw_up
- scoreboard players tag @a[score_sw_change=-1] add sw_down
- $newline
- ::section adjustRange
- :R: execute @a[tag=sw_up] ~ ~ ~ scoreboard players add @e[type=ArmorStand,name=Note,r=5,tag=!changeInstr] nbi_note 1 {Tags:["change"]}
- execute @a[tag=sw_down] ~ ~ ~ scoreboard players remove @e[type=ArmorStand,name=Note,r=5,tag=!changeInstr] nbi_note 1 {Tags:["change"]}
- execute @a[tag=sw_up] ~ ~ ~ scoreboard players add @e[type=ArmorStand,name=Note,r=5,tag=changeInstr] nbi_instr 1 {Tags:["change"]}
- execute @a[tag=sw_down] ~ ~ ~ scoreboard players remove @e[type=ArmorStand,name=Note,r=5,tag=changeInstr] nbi_instr 1 {Tags:["change"]}
- :CONDITION: include-pling = true
- scoreboard players set @e[type=ArmorStand,name=Note,score_nbi_instr=0] nbi_instr 6
- scoreboard players set @e[type=ArmorStand,name=Note,score_nbi_instr_min=7] nbi_instr 1
- :CONDITION: include-pling != true
- scoreboard players set @e[type=ArmorStand,name=Note,score_nbi_instr=0] nbi_instr 5
- scoreboard players set @e[type=ArmorStand,name=Note,score_nbi_instr_min=6] nbi_instr 1
- :CONDITION: extend-octave-limit = true
- scoreboard players set @e[type=ArmorStand,name=Note,score_nbi_note=-25] nbi_note 48
- scoreboard players set @e[type=ArmorStand,name=Note,score_nbi_note_min=49] nbi_note -24
- :CONDITION: extend-octave-limit != true
- scoreboard players set @e[type=ArmorStand,name=Note,score_nbi_note=-1] nbi_note 24
- scoreboard players set @e[type=ArmorStand,name=Note,score_nbi_note_min=25] nbi_note 0
- execute @a[tag=sw_up] ~ ~ ~ scoreboard players tag @e[type=ArmorStand,name=Note,r=5,tag=change] add play
- execute @a[tag=sw_down] ~ ~ ~ scoreboard players tag @e[type=ArmorStand,name=Note,r=5,tag=change] add play
- $newline
- ::section activation
- :R: testfor @e[type=ArmorStand,name=Note]
- :R?: scoreboard players set @e[type=ArmorStand,name=Note] nbi_success 0
- execute @e[type=ArmorStand,name=Note] ~ ~ ~ stats entity @e[type=ArmorStand,name=Note,r=1,c=1] set SuccessCount @e[type=ArmorStand,name=Note,r=1,c=1] nbi_success
- execute @e[type=ArmorStand,name=Note] ~ ~ ~ testforblock ~ ~ ~ minecraft:noteblock -1 {powered:1b}
- stats entity @e[type=ArmorStand,name=Note] clear SuccessCount
- scoreboard players tag @e[type=ArmorStand,name=Note,score_nbi_success_min=1,tag=!powered] add play
- scoreboard players tag @e[type=ArmorStand,name=Note,score_nbi_success_min=1,tag=!powered] add powered
- scoreboard players tag @e[type=ArmorStand,name=Note,score_nbi_success=0,tag=powered] remove powered
- $newline
- ::section note_harp
- :R: testfor @e[type=ArmorStand,name=Note,score_nbi_instr==1,tag=play]
- :R?:
- #Harp
- :CONDITION: extend-octave-limit = true
- #-1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;-24,-1
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==1,tag=play] ~ ~ ~ playsound minecraft:block.note.harp_-1 record @a ~ ~ ~ 5.0 %p 0.0
- #0 Octave Shift
- :MULTI:
- iterations:25
- !n#:2;0,24
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==1,tag=play] ~ ~ ~ playsound minecraft:block.note.harp record @a ~ ~ ~ 5.0 %p 0.0
- :CONDITION: extend-octave-limit = true
- #+1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;25,48
- !p'; 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==1,tag=play] ~ ~ ~ playsound minecraft:block.note.harp_+1 record @a ~ ~ ~ 5.0 %p 0.0
- $newline
- ::section note_bass
- :R: testfor @e[type=ArmorStand,name=Note,score_nbi_instr==2,tag=play]
- :R?:
- #Bass
- :CONDITION: extend-octave-limit = true
- #-1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;-24,-1
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==2,tag=play] ~ ~ ~ playsound minecraft:block.note.bass_-1 record @a ~ ~ ~ 5.0 %p 0.0
- #0 Octave Shift
- :MULTI:
- iterations:25
- !n#:2;0,24
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==2,tag=play] ~ ~ ~ playsound minecraft:block.note.bass record @a ~ ~ ~ 5.0 %p 0.0
- :CONDITION: extend-octave-limit = true
- #+1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;25,48
- !p'; 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==2,tag=play] ~ ~ ~ playsound minecraft:block.note.bass_+1 record @a ~ ~ ~ 5.0 %p 0.0
- $newline
- ::section note_bassattack
- :R: testfor @e[type=ArmorStand,name=Note,score_nbi_instr==3,tag=play]
- :R?:
- #Bassattack
- :CONDITION: extend-octave-limit = true
- #-1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;-24,-1
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==3,tag=play] ~ ~ ~ playsound minecraft:block.note.basedrum_-1 record @a ~ ~ ~ 5.0 %p 0.0
- #0 Octave Shift
- :MULTI:
- iterations:25
- !n#:2;0,24
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==3,tag=play] ~ ~ ~ playsound minecraft:block.note.basedrum record @a ~ ~ ~ 5.0 %p 0.0
- :CONDITION: extend-octave-limit = true
- #+1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;25,48
- !p'; 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==3,tag=play] ~ ~ ~ playsound minecraft:block.note.basedrum_+1 record @a ~ ~ ~ 5.0 %p 0.0
- $newline
- ::section note_snare
- :R: testfor @e[type=ArmorStand,name=Note,score_nbi_instr==4,tag=play]
- :R?:
- #Snare Drum
- :CONDITION: extend-octave-limit = true
- #-1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;-24,-1
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==4,tag=play] ~ ~ ~ playsound minecraft:block.note.snare_-1 record @a ~ ~ ~ 5.0 %p 0.0
- #0 Octave Shift
- :MULTI:
- iterations:25
- !n#:2;0,24
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==4,tag=play] ~ ~ ~ playsound minecraft:block.note.snare record @a ~ ~ ~ 5.0 %p 0.0
- :CONDITION: extend-octave-limit = true
- #+1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;25,48
- !p'; 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==4,tag=play] ~ ~ ~ playsound minecraft:block.note.snare_+1 record @a ~ ~ ~ 5.0 %p 0.0
- $newline
- ::section note_hat
- :R: testfor @e[type=ArmorStand,name=Note,score_nbi_instr==5,tag=play]
- :R?:
- #Hat
- :CONDITION: extend-octave-limit = true
- #-1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;-24,-1
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==5,tag=play] ~ ~ ~ playsound minecraft:block.note.hat_-1 record @a ~ ~ ~ 5.0 %p 0.0
- #0 Octave Shift
- :MULTI:
- iterations:25
- !n#:2;0,24
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==5,tag=play] ~ ~ ~ playsound minecraft:block.note.hat record @a ~ ~ ~ 5.0 %p 0.0
- :CONDITION: extend-octave-limit = true
- #+1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;25,48
- !p'; 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==5,tag=play] ~ ~ ~ playsound minecraft:block.note.hat_+1 record @a ~ ~ ~ 5.0 %p 0.0
- $newline
- ::section note_pling
- #Pling (Extra)
- :CONDITION: include-pling = true
- :R: testfor @e[type=ArmorStand,name=Note,score_nbi_instr==6,tag=play]
- :R?:
- :CONDITION: extend-octave-limit = true
- #-1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;-24,-1
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==6,tag=play] ~ ~ ~ playsound minecraft:block.note.pling_-1 record @a ~ ~ ~ 5.0 %p 0.0
- #0 Octave Shift
- :MULTI:
- iterations:25
- !n#:2;0,24
- !p'; 0.5, 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==6,tag=play] ~ ~ ~ playsound minecraft:block.note.pling record @a ~ ~ ~ 5.0 %p 0.0
- :CONDITION: extend-octave-limit = true
- #+1 Octave Shift
- :MULTI:
- iterations:24
- !n#:2;25,48
- !p'; 0.53, 0.56, 0.59, 0.62, 0.67, 0.7, 0.75, 0.8, 0.84, 0.9, 0.95, 1.0, 1.05, 1.12, 1.19, 1.26, 1.34, 1.42, 1.5, 1.6, 1.68, 1.78, 1.88, 2.0
- execute @e[type=ArmorStand,name=Note,score_nbi_note==%n,score_nbi_instr==6,tag=play] ~ ~ ~ playsound minecraft:block.note.pling_+1 record @a ~ ~ ~ 5.0 %p 0.0
- $newline
- ::section play_end
- :R: testfor @e[type=ArmorStand,name=Note,tag=play]
- :R?: execute @e[type=ArmorStand,name=Note,tag=play] ~ ~ ~ particle note ~ ~1 ~ 0 0 0 1 1 force @a[r=16]
- scoreboard players tag @e[type=ArmorStand,name=Note,tag=play] remove play
- ::section placing
- $newline
- $newline
- :I!: give @p minecraft:armor_stand 1 0 {display:{Name:"Place Advanced Note Block"},ench:[],EntityTag:{CustomName:SpawnNote,Tags:["init","valid"],NoGravity:1b,Small:1b}}
- :I: setblock ~ ~ ~ minecraft:stone_button 5
- $newline
- $newline
- #LINE PADDING##########################################################################################################################################################################################################################################################################################################################################################################
- $shortcut invis ActiveEffects:[{Id:14,Duration:10000000,Amplifier:0,ShowParticles:0b}]
- $shortcut resis ActiveEffects:[{Id:11,Duration:10000000,Amplifier:5,ShowParticles:0b}]
- $shortcut invis_resis ActiveEffects:[{Id:14,Duration:10000000,Amplifier:0,ShowParticles:0b},{Id:11,Duration:10000000,Amplifier:5,ShowParticles:0b}]
- ::section initializing
- :R: testfor @e[type=ArmorStand,name=SpawnNote]
- :R?: execute @e[type=ArmorStand,name=SpawnNote] ~ ~ ~ summon ArmorStand ~ ~.5 ~ {CustomName:Note,Tags:["valid"],NoGravity:1b,Small:1b,Invisible:1b,Marker:1b,ArmorItems:[{},{},{},{id:minecraft:stained_glass,Count:0b,Damage:5s,tag:{ench:[]}}],Pose:{Head:[180.0f,0.0f,0.0f]},Passengers:[{id:AreaEffectCloud,CustomName:"< Note >",Duration:5,Tags:["NoteUI","NoteUIOverlay","NoteUIOverlay1"],Passengers:[{id:Bat,NoAI:1b,Silent:1b,CustomName:"NoteButton1",Tags:["NoteUI","NoteButton1"],$s invis_resis;,Passengers:[{id:AreaEffectCloud,CustomName:"[ Close ]",Duration:5,Tags:["NoteUI","NoteUIOverlay","NoteUIOverlay2"],Passengers:[{id:Bat,NoAI:1b,Silent:1b,CustomName:"NoteButton2",Tags:["NoteUI","NoteButton2"],$s invis_resis;,Passengers:[{id:AreaEffectCloud,CustomName:"[ Lock ]",Duration:5,Tags:["NoteUI","NoteUIOverlay","NoteUIOverlay3"],Passengers:[{id:Bat,NoAI:1b,Silent:1b,CustomName:"NoteButton3",Tags:["NoteUI","NoteButton3"],$s invis_resis;}]}]}]}]}]}]}
- execute @e[type=ArmorStand,name=SpawnNote] ~ ~ ~ scoreboard players set @e[type=ArmorStand,name=Note,dx=0] nbi_note 0
- execute @e[type=ArmorStand,name=SpawnNote] ~ ~ ~ scoreboard players set @e[type=ArmorStand,name=Note,dx=0] nbi_instr 1
- execute @e[type=ArmorStand,name=SpawnNote] ~ ~ ~ setblock ~ ~ ~ minecraft:noteblock
- execute @e[type=ArmorStand,name=SpawnNote] ~ ~ ~ setblock ~ ~1 ~ minecraft:piston_extension
- kill @e[type=ArmorStand,name=SpawnNote]
- $newline
- ::section disabling
- :R: testfor @e[type=ArmorStand,name=Note]
- :R?: scoreboard players tag @e[type=ArmorStand,name=Note] remove valid
- execute @e[type=ArmorStand,name=Note] ~ ~ ~ detect ~ ~ ~ minecraft:noteblock -1 scoreboard players tag @e[type=ArmorStand,name=Note,r=0,c=1] add valid
- execute @e[type=ArmorStand,name=Note,tag=!valid] ~ ~ ~ setblock ~ ~1 ~ minecraft:air
- kill @e[type=ArmorStand,name=Note,tag=!valid]
- $newline
- ::section misc
- :R: scoreboard players tag @e[type=Bat,tag=NoteUI] add NoteUIKill
- scoreboard players tag @e[type=AreaEffectCloud,tag=NoteUI] add NoteUIKill
- execute @e[type=ArmorStand,name=Note] ~ ~ ~ scoreboard players tag @e[type=Bat,tag=NoteUI,dx=0,dy=3,dz=0] remove NoteUIKill
- execute @e[type=ArmorStand,name=Note] ~ ~ ~ scoreboard players tag @e[type=AreaEffectCloud,tag=NoteUI,dx=0,dy=3,dz=0] remove NoteUIKill
- tp @e[type=Bat,tag=NoteUIKill] ~ -512 ~
- kill @e[type=AreaEffectCloud,tag=NoteUIKill]
- entitydata @e[type=AreaEffectCloud,tag=NoteUI] {Duration:20,Age:0,Particle:"take",Radius:0.00000001f,RadiusOnUse:0,RadiusPerTick:0}
- $newline
- ::section GUI
- :R: testfor @e[type=ArmorStand,name=Note]
- :R?: scoreboard players tag @e[type=Bat,tag=NoteUI] remove click
- scoreboard players tag @e[type=Bat,tag=NoteUI] add click {HurtTime:10s}
- execute @e[type=ArmorStand,name=Note,tag=!change] ~ ~ ~ execute @e[type=Bat,tag=click,dx=0,dy=1,dz=0] ~ ~ ~ entitydata @e[type=AreaEffectCloud,tag=NoteUIOverlay1,dx=0,dy=2,dz=0] {CustomName:"< Note >"}
- execute @e[type=ArmorStand,name=Note,tag=!change] ~ ~ ~ execute @e[type=Bat,tag=click,dx=0,dy=1,dz=0] ~ ~ ~ entitydata @e[type=AreaEffectCloud,tag=NoteUIOverlay2,dx=0,dy=2,dz=0] {CustomName:"[ Close ]"}
- execute @e[type=ArmorStand,name=Note,tag=!change] ~ ~ ~ execute @e[type=Bat,tag=click,dx=0,dy=1,dz=0] ~ ~ ~ entitydata @e[type=AreaEffectCloud,tag=NoteUIOverlay3,dx=0,dy=2,dz=0] {CustomName:"[ Lock ]"}
- execute @e[type=ArmorStand,name=Note,tag=!change] ~ ~ ~ entitydata @e[type=AreaEffectCloud,tag=NoteUIOverlay,dx=0,dy=3,dz=0] {CustomNameVisible:0b}
- execute @e[type=ArmorStand,name=Note,tag=change] ~ ~ ~ entitydata @e[type=AreaEffectCloud,tag=NoteUIOverlay,dx=0,dy=3,dz=0] {CustomNameVisible:1b}
- execute @e[type=ArmorStand,name=Note,tag=change] ~ ~ ~ scoreboard players tag @e[type=Bat,name=NoteButton1,tag=!changeInstr,dx=0,dy=1,dz=0] add changeInstrT {Tags:["click"]}
- execute @e[type=ArmorStand,name=Note,tag=change] ~ ~ ~ scoreboard players tag @e[type=Bat,name=NoteButton1,tag=click,dx=0,dy=1,dz=0] remove changeInstr {Tags:["changeInstr"]}
- execute @e[type=ArmorStand,name=Note,tag=change] ~ ~ ~ scoreboard players tag @e[type=Bat,name=NoteButton1,tag=changeInstrT,dx=0,dy=1,dz=0] add changeInstr
- execute @e[type=ArmorStand,name=Note,tag=change] ~ ~ ~ scoreboard players tag @e[type=Bat,name=NoteButton1,tag=changeInstrT,dx=0,dy=1,dz=0] remove changeInstrT
- scoreboard players tag @e[type=ArmorStand,name=Note,tag=change] remove changeInstr
- $newline
- :R: testfor @e[type=ArmorStand,name=Note]
- :R?: execute @e[type=Bat,name=NoteButton1,tag=changeInstr] ~ ~-1 ~ scoreboard players tag @e[type=ArmorStand,name=Note,tag=change,dx=0,dy=1,dz=0] add changeInstr
- execute @e[type=Bat,name=NoteButton1,tag=!changeInstr] ~ ~-1 ~ entitydata @e[type=AreaEffectCloud,tag=NoteUIOverlay1,dx=0,dy=1,dz=0] {CustomName:"< Note >"}
- execute @e[type=Bat,name=NoteButton1,tag=changeInstr] ~ ~-1 ~ entitydata @e[type=AreaEffectCloud,tag=NoteUIOverlay1,dx=0,dy=1,dz=0] {CustomName:"< Instrument >"}
- execute @e[type=ArmorStand,name=Note,tag=change] ~ ~ ~ particle mobSpellAmbient ~ ~ ~ .5 .5 .5 1 5
- execute @e[type=ArmorStand,name=Note,tag=!change] ~ ~ ~ execute @e[type=Bat,tag=click,dx=0,dy=1,dz=0] ~ ~-1 ~ tellraw @a[c=2,r=5] [{"text":" | ","color":"dark_aqua"},{"text":"Advanced Note Block","color":"aqua"},{"text":" | ","color":"dark_aqua"},{"text":"Use your scrollwheel to increase or decrease the note or instrument.","color":"green"}]
- execute @e[type=ArmorStand,name=Note,tag=!change] ~ ~ ~ execute @e[type=Bat,tag=click,dx=0,dy=1,dz=0] ~ ~-1 ~ scoreboard players tag @e[type=ArmorStand,name=Note,dx=0,dy=1,dz=0] add change
- execute @e[type=ArmorStand,name=Note,tag=change] ~ ~ ~ execute @e[type=Bat,name=NoteButton2,tag=click,dx=0,dy=1,dz=0] ~ ~-1 ~ scoreboard players tag @e[type=ArmorStand,name=Note,dx=0,dy=1,dz=0] remove change
- execute @e[type=ArmorStand,name=Note,tag=change] ~ ~ ~ execute @e[type=Bat,name=NoteButton3,tag=click,dx=0,dy=2,dz=0] ~ ~-2 ~ scoreboard players tag @e[type=ArmorStand,name=Note,dx=0,dy=1,dz=0] add lock
- execute @e[type=ArmorStand,name=Note,tag=lock] ~ ~ ~ tellraw @a[c=2,r=5] [{"text":" | ","color":"dark_aqua"},{"text":"Advanced Note Block","color":"aqua"},{"text":" | ","color":"dark_aqua"},{"text":"You have locked this note block, disabling all interactions with it, as well as reducing lag. Replace the advanced note block to edit again.","color":"red"}]
- execute @e[type=ArmorStand,name=Note,tag=lock] ~ ~ ~ kill @e[type=!Player,tag=NoteUI,dx=0,dy=3,dz=0]
- scoreboard players tag @e[type=ArmorStand,name=Note,tag=lock] remove change
- scoreboard players tag @e[type=ArmorStand,name=Note,tag=lock] remove changeInstr
- scoreboard players tag @e[type=ArmorStand,name=Note,tag=lock] remove lock
- $newline
- ::section crafting
- :R: execute @e[type=Item] ~ ~ ~ detect ~ ~-1 ~ minecraft:crafting_table -1 scoreboard players tag @e[type=Item,r=0,c=1] add changeNoteBlock {Item:{id:minecraft:noteblock}}
- execute @e[type=Item,tag=changeNoteBlock] ~ ~ ~ particle dragonbreath ~ ~ ~ 0 0 0 1 5
- execute @e[type=Item,tag=changeNoteBlock] ~ ~ ~ playsound minecraft:entity.ghast.shoot master @a ~ ~ ~ 1.0 0.5 0.0
- execute @e[type=Item,tag=changeNoteBlock] ~ ~ ~ playsound minecraft:entity.ghast.shoot master @a ~ ~ ~ 1.0 2.0 0.0
- entitydata @e[type=Item,tag=changeNoteBlock] {CustomName:"Advanced Note Block",CustomNameVisible:1b,Tags:[],Item:{id:minecraft:armor_stand,tag:{ench:[],display:{Name:"Place Advanced Note Block"},EntityTag:{CustomName:SpawnNote,NoGravity:1b}}}}
Advertisement
Add Comment
Please, Sign In to add comment