Skript Version (do not put latest): Skript 2.4.1
Skript Author: Bensku
Minecraft Version: 1.12.2
Code:
So I'm testing to detect the name of a minecart when a command block is activated by a moving minecart using detector rail.
After I tried to use this code, I found that the command executed by cmd block cannot enter the loop expression, but it can enter if I execute this command as a player
How could I modify the code to allow command blocks also enter the loop?
Addons using (including versions):
Sk-NBeeT 2.11.0
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? There are no other methods I can think of right now.
Skript Author: Bensku
Minecraft Version: 1.12.2
Code:
Code:
command /test:
trigger:
broadcast "1"
loop all entities in radius 5 around command sender:
broadcast "%loop-entity%"
if "%loop-entity%" is "minecart":
set {_nbt} to nbt of loop-entity
broadcast "Minecart's NBT is %{_nbt}%."
After I tried to use this code, I found that the command executed by cmd block cannot enter the loop expression, but it can enter if I execute this command as a player
How could I modify the code to allow command blocks also enter the loop?
Addons using (including versions):
Sk-NBeeT 2.11.0
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? There are no other methods I can think of right now.