Started by
TK
on
Topic category: Help with Minecraft modding (Java Edition)
I'm storing commands as NBT in items to execute when the item is used. They work correctly when the player used them in creative mode but does nothing in survival. I feel like this is because it gets the NBT from the main hand of the entity which also grabs their permission levels, but am not completely sure if this is correct, though I believe for this to be the case, in which I want to know how I may force run these commands on the highest permission level at all times.
The top block works while the bottom one doesn't **This is only two more cosmetic commands being executed above these blocks shown.
I'm not sure why that isn't working, but I know that the execute command procedure block that you are using doesn't care about permission level at all, it just always runs the command. The only thing I could think of is if there is a typo or something in the set_command nbt tag.
I thought that it ran with the highest permission level, and I have checked the nbt tag and there are no typos.
From what I know (and I don't know the technical terms for this), it does the same thing as placing a spawn egg that summons a minecart with a command block that has pre set commands in it into a public server/hosted world where you have minimal permissions. It basically wipes the command for low permission people. It seems the same is happening here and I don't know why & how to fix that.
Wait... I might have figured it out........ Dumb problem.... It checks the nbt of the item in the hand of the person throwing it after it has been thrown........