VSCode Spyglass bug? and Loot Table Question
First: I'm using the Spyglass Plugin for VSCode to create my datapacks, and in my player loot table it gives me an error where i'm not sure if it should be there. player.json file: { "type": "minecraft:entity", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "minecraft:player_head", "functions": [ { "function": "minecraft:set_name", "entity": "this" }, { "function": "minecraft:fill_player_head", "entity": "this" } ] } ] } ] } Spyglass says that there is a "name" parameter missing in the "minecraft:set_name" function, but it already has a parameter with the entity no? Also it works despite the apparent error and i'm really annoyed by it because it shows the error in my whole file structure. Is this error real or a bug? Can you turn it off somehow (like an "ignore error" button)?
Second: I want to save the player names of all (online) players in a data storage so i can use them for different things, and i have a solution with the player heads as loot (same as above), but it always drops them when a player is killed (obviously) (but strangely only in multiplayer on a server, in singleplayer or with a hosted world with essential it doesn't). Is there any way to do it without the constant player heads dropping when playing?