Solved how to get mob spawner with correct NBT?

  • 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.

kenkencw

Active Member
Jan 31, 2017
68
0
0
Malaysia
www.huskycraftmc.com
i tried many NBT data all wont work

code_language.skript:
give player mob spawner with nbt tag "{EntityId:""chicken""}{SpawnPotentials:[{Type:""chicken""}]}"

and how to get breaked spawner type or NBT to define which mobs
code_language.skript:
on break of mob spawner:
    set {_type} to NBT of item
 
Last edited:
i tried many NBT data all wont work

code_language.skript:
give player mob spawner with nbt tag "{EntityId:""chicken""}{SpawnPotentials:[{Type:""chicken""}]}"

and how to get breaked spawner type or NBT to define which mobs
code_language.skript:
on break of mob spawner:
    set {_type} to NBT of item
http://skunity.com/search?search=Spawner


code_language.skript:
on break of mob spawner:
    drop a spawner at player based on event-block
 
... -.-

then enjoy to find result.
dont think no umbaska = no life, i need solution other then umbaska, i have my own reason, just umbaska sometimes conflict with some important sk addon codes :emoji_thumbsup:
 
dont think no umbaska = no life, i need solution other then umbaska, i have my own reason, just umbaska sometimes conflict with some important sk addon codes :emoji_thumbsup:
Fines, your need search/find other harder soultion. so i will not help you...

btw i have no problem with umbaska with other plugins/Addons
 
nvm, how about the NBT thingy usage from skstuff?
[doublepost=1495648336,1494134965][/doublepost]after bunch of research finally i found it
this code works fine for me :emoji_grimacing:
code_language.skript:
break of mob spawner:
    player's gamemode is not creative
    player's tool is any pickaxe of silk touch
    set {_s} to "%nbt of targeted block%"
    set {_s::*} to {_s} split at """"
    drop mob spawner with nbt "{BlockEntityTag:{SpawnData:{id:""%{_s::2}%""},id:""minecraft:mob_spawner"",SpawnPotentials:[0:{Entity:{id:""%{_s::2}%""},Weight:1}]},display:{Name:""%{_s::2}%""}}"
 
Status
Not open for further replies.