Detecting name of minecart

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Aberforth

Member
Jun 14, 2019
40
2
8
Canada
Skript Version: /sk update says 'latest stable version', idk how to check
Skript Author: Bensku
Minecraft Version: 1.8
---
Full Code:
on rightclick on minecart:
if name of clicked entity is "CrownVictoria":
send "text" to player

Errors on Reload:
None, but the skript doesn't work
Other Useful Info:

Addons using (including versions):
SkRayFall 1.9.15, skUtilities 0.9.2, SkQuery, SkStuff, SharpSK, Skellet

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? Changing 'clicked entity' with event-entity, trying to put the name as a variable and compare the name with the variable, trying to check the full NBT tag instead of the name.

What's weird is that it works on normal mobs, maybe Skript doesn't support names for minecarts?
[doublepost=1566933977,1566895588][/doublepost]The problem has been solved, if anyone's having this issue, check this out:

on rightclick on minecart:
set {_nbt} to nbt tag of event-entity
if "%{_nbt}%" contains "CrownVictoria":
send "text." to player
 
Status
Not open for further replies.