skin in wildskript not work

  • 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 comminuty!

    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.

hakeem_j

Member
Aug 17, 2017
39
1
0
26
b.PNG

doesn't work
 
Perhaps i was too subtle for you


I need your mc server version, your errors on reload (that seems like there aren't any), your errors on console, your addons and their versions and possible plugins that may be interfering with this
 
i say by command for batman
because i cant understand { use }
For changing skins with MundoSK, first of all you need ProtocolLib if you don't have it yet (needs be 4.1 and up or it'll not work). Then, you can use the following expression to get a player's skin:
code_language.skript:
skin [texture] of %player/itemstack%
%player/itemstack%'s skin
Which returns a skin texture, a type which basically contains a base64 encoded url with the texture of the player.

But what matters here is the setting of skins which you should be able to do with the following expression:
code_language.skript:
displayed skin of %player% [(for %-players%|excluding %-players%)]
%player%'s displayed skin [(for %-players%|excluding %-players%)]
For set the skin of a player you need a skin texture object which you can get with the first expression I mentioned above or the following one:
code_language.skript:
skin [texture] (with|of) value %string% signature %string%
The value and signature are base64 encoded strings which you can get from any skin API out here, I personally use MineSkin for it.

An example of setting skins here:

code_language.skript:
on skript load:

  clear {default-skin}
  set {_default-skin::value} to "eyJ0aW1lc3RhbXAiOjE1MDM4MzIwNjg0MDMsInByb2ZpbGVJZCI6IjdjZjc2MTFkYmY2YjQxOWRiNjlkMmQzY2Q4NzUxZjRjIiwicHJvZmlsZU5hbWUiOiJrYXJldGg5OTkiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJtZXRhZGF0YSI6eyJtb2RlbCI6InNsaW0ifSwidXJsIjoiaHR0cDovL3RleHR1cmVzLm1pbmVjcmFmdC5uZXQvdGV4dHVyZS8yMDhkN2E2MDk2MjRkNWQxZTg1NThiYWM1NTZlMmM0NjRiZGVmYTYxNzMzOWQ3ZjVjZWI1NWY1YzA3MDVhYjMifX19"
  set {_default-skin::signature} to "PzflFe/Ib2uXwNtY6thSW1Q7bpDON7JtdYXdCA27DSQpx+A/Rq0xQftpR6BbKxat1DZnOlaC8CZeXLnTjhJViTbkA6L+hBuP2Hl3vBIL/o8XifZOu2X0Tf5QRPh31JQ6nX0v7uzWRDI7WiIHaI4wbbDB32PjbgAvAE8qjTBFWP6VaMM4Wp6o3EDsWamFUGkc4UiD5kxy7I45uWRErQgZRqi1dNFYZjUsqxib5FTp2OYk11uVdDADDMkrhOFo/H0C7wNfBKJkV5WkB6Fmgj6s9r3o+GUKyrPhJR/LPQTDodTOMvV7uFkbOURiaGX3rK0x072NXzA2gAUJtZihGxerXGSF7ebNzteOrBjyaM6ey2uFC5w6LDmuSInTxhin7dmbCBQdOhJ3ZpmWiwFv8tJR7RzcOQBE4d8mzN95hidesRASyz6Ubm8Oh7uw2E4mDVideiOqae34RcK+kCldlM+tBamU13UgQjeE3I+LNKtEcw/8UEw7mtSEItzjZhIqXWdC+v5YkJ+CXTmNvua7WDldFs7HJLf97q3579F2IvJHInDOO/JuHkHZsdanJVu/QQjdZNXu9kLsdZWFUkIMLmQJmgiWzDatVMP0LW5a7UXzI9KrCXtdG5QFYJ/Bu3lbFc+JX34uGZMLsJGMmQiBpyRzZ7w0mZgQkAGB13Q2MDyTzPc="

  set {default-skin} to skin texture with value {_default-skin::value} signature {_default-skin::signature}

on join:
    
  wait 5 ticks
  set displayed skin of player to {default-skin}
 
  • Like
Reactions: player2709
For changing skins with MundoSK, first of all you need ProtocolLib if you don't have it yet (needs be 4.1 and up or it'll not work). Then, you can use the following expression to get a player's skin:
code_language.skript:
skin [texture] of %player/itemstack%
%player/itemstack%'s skin
Which returns a skin texture, a type which basically contains a base64 encoded url with the texture of the player.

But what matters here is the setting of skins which you should be able to do with the following expression:
code_language.skript:
displayed skin of %player% [(for %-players%|excluding %-players%)]
%player%'s displayed skin [(for %-players%|excluding %-players%)]
For set the skin of a player you need a skin texture object which you can get with the first expression I mentioned above or the following one:
code_language.skript:
skin [texture] (with|of) value %string% signature %string%
The value and signature are base64 encoded strings which you can get from any skin API out here, I personally use MineSkin for it.

An example of setting skins here:

code_language.skript:
on skript load:

  clear {default-skin}
  set {_default-skin::value} to "eyJ0aW1lc3RhbXAiOjE1MDM4MzIwNjg0MDMsInByb2ZpbGVJZCI6IjdjZjc2MTFkYmY2YjQxOWRiNjlkMmQzY2Q4NzUxZjRjIiwicHJvZmlsZU5hbWUiOiJrYXJldGg5OTkiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJtZXRhZGF0YSI6eyJtb2RlbCI6InNsaW0ifSwidXJsIjoiaHR0cDovL3RleHR1cmVzLm1pbmVjcmFmdC5uZXQvdGV4dHVyZS8yMDhkN2E2MDk2MjRkNWQxZTg1NThiYWM1NTZlMmM0NjRiZGVmYTYxNzMzOWQ3ZjVjZWI1NWY1YzA3MDVhYjMifX19"
  set {_default-skin::signature} to "PzflFe/Ib2uXwNtY6thSW1Q7bpDON7JtdYXdCA27DSQpx+A/Rq0xQftpR6BbKxat1DZnOlaC8CZeXLnTjhJViTbkA6L+hBuP2Hl3vBIL/o8XifZOu2X0Tf5QRPh31JQ6nX0v7uzWRDI7WiIHaI4wbbDB32PjbgAvAE8qjTBFWP6VaMM4Wp6o3EDsWamFUGkc4UiD5kxy7I45uWRErQgZRqi1dNFYZjUsqxib5FTp2OYk11uVdDADDMkrhOFo/H0C7wNfBKJkV5WkB6Fmgj6s9r3o+GUKyrPhJR/LPQTDodTOMvV7uFkbOURiaGX3rK0x072NXzA2gAUJtZihGxerXGSF7ebNzteOrBjyaM6ey2uFC5w6LDmuSInTxhin7dmbCBQdOhJ3ZpmWiwFv8tJR7RzcOQBE4d8mzN95hidesRASyz6Ubm8Oh7uw2E4mDVideiOqae34RcK+kCldlM+tBamU13UgQjeE3I+LNKtEcw/8UEw7mtSEItzjZhIqXWdC+v5YkJ+CXTmNvua7WDldFs7HJLf97q3579F2IvJHInDOO/JuHkHZsdanJVu/QQjdZNXu9kLsdZWFUkIMLmQJmgiWzDatVMP0LW5a7UXzI9KrCXtdG5QFYJ/Bu3lbFc+JX34uGZMLsJGMmQiBpyRzZ7w0mZgQkAGB13Q2MDyTzPc="

  set {default-skin} to skin texture with value {_default-skin::value} signature {_default-skin::signature}

on join:
   
  wait 5 ticks
  set displayed skin of player to {default-skin}
how i can make my own skin to text like
code_language.skript:
set {_default-skin::value} to "eyJ0aW1lc3RhbXAiOjE1MDM4MzIwNjg0MDMsInByb2ZpbGVJZCI6IjdjZjc2MTFkYmY2YjQxOWRiNjlkMmQzY2Q4NzUxZjRjIiwicHJvZmlsZU5hbWUiOiJrYXJldGg5OTkiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJtZXRhZGF0YSI6eyJtb2RlbCI6InNsaW0ifSwidXJsIjoiaHR0cDovL3RleHR1cmVzLm1pbmVjcmFmdC5uZXQvdGV4dHVyZS8yMDhkN2E2MDk2MjRkNWQxZTg1NThiYWM1NTZlMmM0NjRiZGVmYTYxNzMzOWQ3ZjVjZWI1NWY1YzA3MDVhYjMifX19"
  set {_default-skin::signature} to "PzflFe/Ib2uXwNtY6thSW1Q7bpDON7JtdYXdCA27DSQpx+A/Rq0xQftpR6BbKxat1DZnOlaC8CZeXLnTjhJViTbkA6L+hBuP2Hl3vBIL/o8XifZOu2X0Tf5QRPh31JQ6nX0v7uzWRDI7WiIHaI4wbbDB32PjbgAvAE8qjTBFWP6VaMM4Wp6o3EDsWamFUGkc4UiD5kxy7I45uWRErQgZRqi1dNFYZjUsqxib5FTp2OYk11uVdDADDMkrhOFo/H0C7wNfBKJkV5WkB6Fmgj6s9r3o+GUKyrPhJR/LPQTDodTOMvV7uFkbOURiaGX3rK0x072NXzA2gAUJtZihGxerXGSF7ebNzteOrBjyaM6ey2uFC5w6LDmuSInTxhin7dmbCBQdOhJ3ZpmWiwFv8tJR7RzcOQBE4d8mzN95hidesRASyz6Ubm8Oh7uw2E4mDVideiOqae34RcK+kCldlM+tBamU13UgQjeE3I+LNKtEcw/8UEw7mtSEItzjZhIqXWdC+v5YkJ+CXTmNvua7WDldFs7HJLf97q3579F2IvJHInDOO/JuHkHZsdanJVu/QQjdZNXu9kLsdZWFUkIMLmQJmgiWzDatVMP0LW5a7UXzI9KrCXtdG5QFYJ/Bu3lbFc+JX34uGZMLsJGMmQiBpyRzZ7w0mZgQkAGB13Q2MDyTzPc="
 
Status
Not open for further replies.