Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- giantSpawnerNBT.toString();:
- TAG_Compound: 10 entries
- {
- TAG_String("id"): MobSpawner
- TAG_Short("MinSpawnDelay"): 200
- TAG_Short("RequiredPlayerRange"): 16
- TAG_Short("Delay"): -1
- TAG_Short("MaxSpawnDelay"): 800
- TAG_Short("MaxNearbyEntities"): 6
- TAG_Short("SpawnCount"): 4
- TAG_Short("SpawnRange"): 4
- TAG_Compound("SpawnData"): 3 entries
- {
- TAG_List("ActiveEffects"): 1 entries of type TAG_Compound
- {
- TAG_Compound: 3 entries
- {
- TAG_Int("Duration"): 100
- TAG_Byte("Id"): 14
- TAG_Byte("ShowParticles"): 0
- }
- }
- TAG_Compound("Riding"): 1 entries
- {
- TAG_String("id"): Giant
- }
- TAG_Float("HealF"): 0.0
- }
- TAG_String("EntityId"): Zombie
- }
- ###############################################################
- ###############################################################
- MobSpawnerBlock weSpawnerBlock = new MobSpawnerBlock();
- weSpawnerBlock.setNbtData(giantSpawnerNBT);
- weSpawnerBlock.getNbtData().toString();:
- TAG_Compound("MobSpawner"): 9 entries
- {
- TAG_Short("MinSpawnDelay"): 200
- TAG_Short("RequiredPlayerRange"): 16
- TAG_Short("Delay"): -1
- TAG_Short("MaxNearbyEntities"): 6
- TAG_Short("MaxSpawnDelay"): 800
- TAG_Short("SpawnRange"): 4
- TAG_Short("SpawnCount"): 4
- TAG_Compound("SpawnData"): 3 entries
- {
- TAG_List("ActiveEffects"): 1 entries of type TAG_Compound
- {
- TAG_Compound: 3 entries
- {
- TAG_Int("Duration"): 100
- TAG_Byte("Id"): 14
- TAG_Byte("ShowParticles"): 0
- }
- }
- TAG_Compound("Riding"): 1 entries
- {
- TAG_String("id"): Giant
- }
- TAG_Float("HealF"): 0.0
- }
- TAG_String("EntityId"): Zombie
- }
- ###############################################################
- ###############################################################
- (After placing the block in the world)
- BaseBlock weBlock = bWorld.getBlock(blockLocation);
- if (weBlock.hasNbtData()) {
- CompoundTag nbtData = weBlock.getNbtData();
- }
- nbtData.toString();:
- TAG_Compound("TAG_Compound"): 12 entries
- {
- TAG_String("id"): MobSpawner
- TAG_Short("MinSpawnDelay"): 200
- TAG_Short("RequiredPlayerRange"): 16
- TAG_Short("Delay"): 0
- TAG_Short("MaxSpawnDelay"): 800
- TAG_Short("MaxNearbyEntities"): 6
- TAG_Short("SpawnCount"): 4
- TAG_Short("SpawnRange"): 4
- TAG_Int("z"): 246
- TAG_Int("y"): 69
- TAG_String("EntityId"): Zombie
- TAG_Int("x"): -167
- }
- ###############################################################
- ###############################################################
- (Using the variable which stores the above)
- MobSpawnerBlock weSpawnerBlock = new MobSpawnerBlock();
- weSpawnerBlock.setNbtData(nbtData);
- weSpawnerBlock.getNbtData().toString();:
- TAG_Compound("MobSpawner"): 8 entries
- {
- TAG_Short("MinSpawnDelay"): 200
- TAG_Short("RequiredPlayerRange"): 16
- TAG_Short("Delay"): 0
- TAG_Short("MaxNearbyEntities"): 6
- TAG_Short("MaxSpawnDelay"): 800
- TAG_Short("SpawnRange"): 4
- TAG_Short("SpawnCount"): 4
- TAG_String("EntityId"): Zombie
- }
Advertisement
Add Comment
Please, Sign In to add comment