/execute unless entity @a[nbt={Inventory:[{id:"minecraft:splash_potion",tag:{Potion:"minecraft:strong_poison"}}]}] run give @s splash_potion{Potion:"minecraft:strong_poison"} 1
Drop 3 Daimond Blocks and a white Banner on a Craftingtable to craft (with particle and sound) a Red Banner Named Lava Swimmer and special Tag.
That item makes that Lava and Fire cant Hurt You if in Your inventory.
ingrediance on craftingtable only can picked up by sneaking
"Lava Swimmer" can be picked up without scneaking
tick.function
execute as @r at @s as @e[type=item,distance=..6] at @s if block ~ ~-1 ~ crafting_table run data merge entity @s {PickupDelay:10}
execute as @r at @s as @e[type=item,nbt={Item:{id:"minecraft:red_banner",Count:1b,tag:{display:{Name:'{"text":"Lava Swimmer"}'},D2Quest1Item:1b}}}] at @s if block ~ ~-1 ~ crafting_table run data merge entity @s {PickupDelay:0}
execute as @r[scores={crouch=1..}] at @s as @e[type=item,distance=..6] at @s if block ~ ~-1 ~ crafting_table run data merge entity @s {PickupDelay:0}
execute as @r at @s as @e[type=item,distance=..6,nbt={Item:{id:"minecraft:diamond_block",Count:3b,}}] at @s if block ~ ~-1 ~ crafting_table run tag @s add drop_lapis_lazuli_ore_1
execute as @r at @s as @e[type=item,distance=..6,nbt={Item:{id:"minecraft:white_banner",Count:1b,}}] at @s if block ~ ~-1 ~ crafting_table run tag @s add drop_stone
execute as @e[tag=drop_stone] at @s if entity @e[tag=drop_lapis_lazuli_ore_1,distance=..1] if block ~ ~-1 ~ minecraft:crafting_table run tag @s add zusammen
execute as @e[tag=zusammen] at @s run playsound minecraft:item.trident.thunder master @a[distance=..15]
execute as @e[tag=zusammen] at @s run playsound minecraft:block.enchantment_table.use master @a[distance=..15]
execute as @e[tag=zusammen] at @s run particle minecraft:firework ~ ~1.5 ~ 0.4 0.4 0.4 0.01 80
execute as @e[tag=zusammen] at @s run kill @e[tag=drop_lapis_lazuli_ore_1]
execute as @e[tag=zusammen] at @s run data merge entity @s {Item:{id:"minecraft:red_banner",Count:1b,tag:{display:{Name:'{"text":"Lava Swimmer"}'},D2Quest1Item:1b}}}
execute as @e[type=item,nbt={Item:{id:"minecraft:red_banner",Count:1b,tag:{display:{Name:'{"text":"Lava Swimmer"}'},D2Quest1Item:1b}}}] at @s if block ~ ~-1 ~ crafting_table run tag @s remove zusammen
execute as @r at @s as @e[type=item,distance=..6,nbt={Item:{id:"minecraft:stone",Count:1b,}}] at @s if block ~ ~-1 ~ crafting_table run tag @s add drop_stone
0
i´ve made a data pack for detect iron and diamon at same time in onefunction. functionaly is good,but
is there a way to switch between functions to enable or disable different ores?
spacialy to Megacrafter107 pls dont be angry for my MANY questions ;-) i love theese command and functions things xDD
0
on 1.14
/execute unless entity @a[nbt={Inventory:[{id:"minecraft:splash_potion",tag:{Potion:"minecraft:strong_poison"}}]}] run give @s splash_potion{Potion:"minecraft:strong_poison"} 1
in an repeating commandblock
************EDIT***********
sry too fast not working
0
Tank you😉
0
sry it didn. thats why i wrote " cant handle"
it only tells for exsample player got 20[gespeichert]
0
sry cant handle that
it read result of scoreboard (i believe) but how i give that result as xp or level to @p
0
/scoreboard objectives add xp xp
/scoreboard objectives add gespeichert dummy
/execute as @p at @s run scoreboard players operation @s gespeichert = @s xp
----------------------------------------------------
/execute as @p at @s run xp add @s {score from scoreboard named gespeichert}
(its for storing xp to get it back later)
cant find the command..
0
Drop 3 Daimond Blocks and a white Banner on a Craftingtable to craft (with particle and sound) a Red Banner Named Lava Swimmer and special Tag.
That item makes that Lava and Fire cant Hurt You if in Your inventory.
ingrediance on craftingtable only can picked up by sneaking
"Lava Swimmer" can be picked up without scneaking
tick.function
execute as @r at @s as @e[type=item,distance=..6] at @s if block ~ ~-1 ~ crafting_table run data merge entity @s {PickupDelay:10}
execute as @r at @s as @e[type=item,nbt={Item:{id:"minecraft:red_banner",Count:1b,tag:{display:{Name:'{"text":"Lava Swimmer"}'},D2Quest1Item:1b}}}] at @s if block ~ ~-1 ~ crafting_table run data merge entity @s {PickupDelay:0}
execute as @r[scores={crouch=1..}] at @s as @e[type=item,distance=..6] at @s if block ~ ~-1 ~ crafting_table run data merge entity @s {PickupDelay:0}
execute as @r at @s as @e[type=item,distance=..6,nbt={Item:{id:"minecraft:diamond_block",Count:3b,}}] at @s if block ~ ~-1 ~ crafting_table run tag @s add drop_lapis_lazuli_ore_1
execute as @r at @s as @e[type=item,distance=..6,nbt={Item:{id:"minecraft:white_banner",Count:1b,}}] at @s if block ~ ~-1 ~ crafting_table run tag @s add drop_stone
execute as @e[tag=drop_stone] at @s if entity @e[tag=drop_lapis_lazuli_ore_1,distance=..1] if block ~ ~-1 ~ minecraft:crafting_table run tag @s add zusammen
execute as @e[tag=zusammen] at @s run playsound minecraft:item.trident.thunder master @a[distance=..15]
execute as @e[tag=zusammen] at @s run playsound minecraft:block.enchantment_table.use master @a[distance=..15]
execute as @e[tag=zusammen] at @s run particle minecraft:firework ~ ~1.5 ~ 0.4 0.4 0.4 0.01 80
execute as @e[tag=zusammen] at @s run kill @e[tag=drop_lapis_lazuli_ore_1]
execute as @e[tag=zusammen] at @s run data merge entity @s {Item:{id:"minecraft:red_banner",Count:1b,tag:{display:{Name:'{"text":"Lava Swimmer"}'},D2Quest1Item:1b}}}
execute as @e[type=item,nbt={Item:{id:"minecraft:red_banner",Count:1b,tag:{display:{Name:'{"text":"Lava Swimmer"}'},D2Quest1Item:1b}}}] at @s if block ~ ~-1 ~ crafting_table run tag @s remove zusammen
scoreboard players reset @a[scores={crouch=1..}] crouch
load function
scoreboard objectives add crouch minecraft.custom:minecraft.crouch_one_cm
0
pffff thank u AGIAN .. worked
im new with comands so i make many mistakes ;-)
sry 4 my bad english
i tag them with
execute as @r at @s as @e[type=item,distance=..6,nbt={Item:{id:"minecraft:stone",Count:1b,}}] at @s if block ~ ~-1 ~ crafting_table run tag @s add drop_stone
0
a tagged dropped stone should "transform" to lapisore
execute as @e[type=item,tag=drop_stone] at @s run data merge entity @s {item:{id:"minecraft:lapis_ore",count:1b}
comand says " ojectdata has changed " but nothing happens
is that outdated?
0
thanks, got it
0
BÄÄÄM got my first own datapack ;-) THANK U
now my LAST question..
with that singele command was no problem with your tutorial
but dont understand how if a chain of commands with condition
1 /execute as @e[type=snowball] at @s run tag @e[type=zombie,limit=1,distance=..2] add tagged
repeat unconditon always active
2 /execute as @e[tag=tagged] at @s run summon item ~ ~ ~ {Item:{id:"minecraft:zombie_spawn_egg",Count:1}}
chain condition always active
3 /kill @e[tag=tagged]
chain condition always active
0
hello!
need some help on puting
that commandblock in an datapack as funktion
execute as @a if entity @s[nbt={Inventory:[{id:"minecraft:red_banner",tag:{D2Quest1Item:1b}}]}] run effect give @s minecraft:fire_resistance 3 1 true
repeat unconditional alwaysactive
0
thanks a lot ;-)
0
il test it thanks
**edit**
worked.. but i put a limit in ther to tag only 1 of a group..
/execute as @e[type=snowball] at @s run tag @e[type=creeper,limit=1,distance=..1.5] add tagged
thank u so much ;-)
--------------------------------------------------------------------------------------------------------------------
is thre a way for edeting flying speed of the snowball? want to meke him slower for better results
one time the ball tagged
other time not..
dont want to make the distance too big
0
@CowsDaBestYT
right! ;-)