#Spawn issues
1 messages ยท Page 1 of 1 (latest)
So initially I created this. Functions fine, uses the lore to store and call on the captured entity, but it's messy so I wanted to make it a little neater using variables and nbt data
if all:
victim is not player or a villager
attacker is holding heart of the sea
name of attacker's held item is "Blackhole Transporter"
1st line of attacker's held item's lore is "empty"
then:
set 1st line of attacker's held item's lore to "Captured:%minecraft entity type of victim%"
replace "minecraft:" in 1st line of attacker's held item's lore with " "
delete victim
on right click:
if all:
target is a block
player is holding heart of the sea
name of player's held item is "Blackhole Transporter"
then:
if 1st line of player's held item's lore is not "empty":
replace "Captured: " in 1st line of player's held item's lore with "minecraft:"
mc spawn 1st line of player's held item's lore above target block
set 1st line of player's held item's lore to "empty"```
the right click code wont work
Learned how to use nbt data properly, and then made this. It should function the exact same, but right clicking with a stored entity just does nothing
if all:
victim is not player, wither, ender dragon or villager
name of attacker's held item is "Blackhole Transporter"
int tag "custom;Rare" of custom nbt of attacker's held item is 1
string tag "custom;Held" of custom nbt of attacker's held item is "empty"
then:
set {_a} to minecraft entity type of victim
set string tag "custom;Held" of custom nbt of attacker's held item to {_a}
set 1st line of attacker's held item's lore to "Captured: %{_a}%"
delete victim
on right click:
if all:
target is a block
name of player's held item is "Blackhole Transporter"
int tag "custom;Rare" of custom nbt of player's held item is 1
string tag "custom;Held" of custom nbt of player's held item is not "empty"
then:
set {_b} to string tag "custom;Held" of custom nbt of player's held item
mc spawn {_b} above target block```
This does work though. I tested it many times, and tested it just a few seconds ago
Maybe skbee messes with stuff? That's the only other addon I have
I also tried removing "target is a block", still doesn't work