2

Need Help With Coding (Datapacks)

2 emeralds0 replies • 46 views
CoderDoggo started 10/8/21 2:58 am
I have a function that calls every tick, and whenever i activate it by dropping the item, it spawns 2 lanterns instead of one?
Code:
execute as @e[type=item,nbt={Item:{id:"minecraft:lantern",tag:{display:{Name:'{"text":"Floating Lantern"}'}}},Age:5s}] at @s run summon tropical_fish ~ ~.1 ~ {Tags:["floating_lantern"],DeathLootTable:"minecraft:empty",Air:6000s,Variant:117899264,PersistenceRequired:1,Silent:1,ActiveEffects:[{Id:11b,Duration:5960,ShowParticles:0b,Amplifier:10},{Id:14b,Duration:6000,ShowParticles:0b},{Id:25b,Duration:6000,ShowParticles:0b}],Passengers:[{Tags:["floating_lantern"],id:"falling_block",Time:-6000,BlockState:{Name:"lantern"}}]}
Posted by avatar
CoderDoggo
Level 9 : Apprentice Crafter
1

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome