Now I'm not a genius when it comes to command blocks so I can't tell you what is wrong but I remade your command and tested it in 1.9.2 (which worked) and by comparing my command and your command there is some differences.
/summon Villager ~ ~1 ~ {CustomName:"The First Wizard",CustomNameVisible:1,Profession:1,Career:1,CareerLevel:42,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:1},sell:{id:potion,Count:1,tag:{display:{Name:"Super Potion"},CustomPotionEffects:[{Id:5,Amplifier:5,Duration:600}]}}}]},Attributes:[{Name:generic.movementSpeed,Base:0}],Invulnerable:1,PersistenceRequired:1,Silent:1}
The generator I made this with is
http://mcstacker.bimbimma.com/
It might be a bit confusing at first but it helps me make several of my commands. It even gives a description for all/most of the options it gives.
Hopes this helps!
In order to detect the value of any gamerule (both default and custom), CommandStats must be used, which will set the value of the gamerule as a score. Only the QueryResult
trigger will be provided with a return value when running /gamerule <name>
.
Prerequisites
Objective to hold the value.
/scoreboard objectives add Gamerules dummy
The target of CommandStats must be tracked in the objective in order to obtain the return value. In this case, a fake player named "$customGamerule" will be used to hold the value.
/scoreboard players set $customGamerule Gamerules 0
You can set the custom gamerule's value to any numerical value for detection. If you set it to "true" or "false", it will be interpreted as 1 and 0 respectively. If you set it to any other string, it will be 0.
/gamerule customGamerule 0
/gamerule customGamerule 1
/gamerule customGamerule 100
/gamerule customGamerule true
Detection
![Repeating > Chain > Conditional Chain](https://i.stack.imgur.com/6qx84.png)
Stand on top of the command block and run the following yourself.
/stats block ~ ~-1 ~ set QueryResult $customGamerule Gamerules
Now every time the command block executes a command that provides a QueryResult
return value, fake player "$customGamerule" will have their "Gamerules" score set equal to that value.
The command that will be placed within that command block, which queries the value of the gamerule:
/gamerule customGamerule
In order to detect the fake player's value, /scoreboard players test
must be used.
/scoreboard players test $customGamerule Gamerules 1 1
Conditional. Command to run if the "customGamerule" gamerule is set to 1.
/say "customGamerule" is set to 1.
As long as the gamerule is set to "1" or "true", the /say
command will execute.
Best Answer
Player skulls will retain the texture they are loaded with, even if the player the skull received its texture from changes their skin.
Steps to reproduce:
Create the necessary player skull in-game. Using the
SkullOwner
string tag will automatically populate the skull with texture data (specifically, the link to the stored texture on minecraft.net), turning into aSkullOwner
compound. Note that there is currently a bug where /give will not allow it to populate within the inventory, requiring you to either throw the item down and pick it back up or to exit and re-enter the world. It will still populate on the block entity when placed.Place the skull down and you will see your current skin.
Exit the world and change your skin to something else. Your old skin texture will still be saved on Mojang's servers for player skulls to use.
Re-enter the world and you'll see the skull still has your old texture and always will.
The data from the skull before populating:
The result after populating:
The
Value
is the important part. It's a base64 encoded JSON object that states details concerning the texture, which does include the link. The decoded data is:And you can see the link to the player skin is saved. That link will never change and will always point to the skin that it was created with, even when you change your skin.