Jump to content

[1.11.2][Solved] Item NBT data does not update on gui button click


Recommended Posts

Posted (edited)

Hello i am trying to change items nbt data when a button is clicked in it's gui but when i click the button then the nbt data of item does not change (tested with /entitydata)

Code: 

@Override
	protected void actionPerformed(GuiButton button) throws IOException {
		switch(button.id) {
		
		case(0): //Assign camera with monitor button
			try {
				ItemStack stack = Minecraft.getMinecraft().player.getHeldItemMainhand();
				NBTTagCompound stacknbt = stack.getTagCompound();
				NBTTagList cams = (NBTTagList) stacknbt.getTag("Cameras");
				
				NBTTagCompound nbt = new NBTTagCompound();
				nbt.setUniqueId("UUID", UUID.randomUUID()); //Placeholder
				
				cams.appendTag(nbt);
				stacknbt.setTag("Cameras", cams);
				stack.setTagCompound(stacknbt);
				System.out.println("lol");
			} catch (Exception e) {
				e.printStackTrace();
			}
			
		}
		super.actionPerformed(button);
	}

log: 

Spoiler
2017-08-05 16:06:37,712 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-08-05 16:06:37,714 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:06:37] [main/INFO] [GradleStart]: Extra: []
[16:06:37] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Lukasz/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[16:06:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:06:38] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:06:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:06:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[16:06:38] [main/INFO] [FML]: Forge Mod Loader version 13.20.0.2294 for Minecraft 1.11.2 loading
[16:06:38] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_111, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_111
[16:06:38] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[16:06:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:06:38] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[16:06:38] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[16:06:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:06:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:06:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:06:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:06:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:06:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:06:38] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[16:06:42] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[16:06:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:06:42] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:06:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:06:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:06:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:06:44] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2017-08-05 16:06:45,956 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-08-05 16:06:46,065 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-08-05 16:06:46,068 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:06:47] [Client thread/INFO]: Setting user: Player20
[16:06:56] [Client thread/WARN]: Skipping bad option: lastServer:
[16:06:56] [Client thread/INFO]: LWJGL Version: 2.9.4
[16:07:00] [Client thread/INFO]: [STDOUT]: ---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.
Time: 8/5/17 4:07 PM
Description: Loading screen debug info
This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
 Minecraft Version: 1.11.2
 Operating System: Windows 10 (amd64) version 10.0
 Java Version: 1.8.0_111, Oracle Corporation
 Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
 Memory: 405803032 bytes (387 MB) / 762314752 bytes (727 MB) up to 1905262592 bytes (1817 MB)
 JVM Flags: 0 total;
 IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
 FML:
 Loaded coremods (and transformers):
 GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 382.05' Renderer: 'GeForce GTX 750 Ti/PCIe/SSE2'
[16:07:00] [Client thread/INFO] [FML]: MinecraftForge v13.20.0.2294 Initialized
[16:07:00] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[16:07:01] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[16:07:01] [Client thread/INFO] [FML]: Searching D:\Programy\Deweloping\Projekty\eclipse\Java\Mod Making\Spy-Mod\run\mods for mods
[16:07:03] [Thread-6/INFO] [FML]: Using sync timing. 200 frames of Display.update took 496271704 nanos
[16:07:03] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[16:07:04] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, spy] at CLIENT
[16:07:04] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, spy] at SERVER
[16:07:06] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Spy Mod
[16:07:06] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[16:07:06] [Client thread/INFO] [FML]: Found 445 ObjectHolder annotations
[16:07:06] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[16:07:06] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[16:07:06] [Client thread/INFO] [FML]: Applying holder lookups
[16:07:06] [Client thread/INFO] [FML]: Holder lookups applied
[16:07:06] [Client thread/INFO] [FML]: Applying holder lookups
[16:07:06] [Client thread/INFO] [FML]: Holder lookups applied
[16:07:06] [Client thread/INFO] [FML]: Applying holder lookups
[16:07:06] [Client thread/INFO] [FML]: Holder lookups applied
[16:07:06] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[16:07:06] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[16:07:07] [Client thread/INFO] [FML]: Applying holder lookups
[16:07:07] [Client thread/INFO] [FML]: Holder lookups applied
[16:07:07] [Client thread/INFO] [FML]: Injecting itemstacks
[16:07:07] [Client thread/INFO] [FML]: Itemstack injection complete
[16:07:07] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: OUTDATED Target: 13.20.1.2386
[16:07:37] [Sound Library Loader/INFO]: Starting up SoundSystem...
[16:07:37] [Thread-8/INFO]: Initializing LWJGL OpenAL
[16:07:37] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:07:37] [Thread-8/INFO]: OpenAL initialized.
[16:07:37] [Sound Library Loader/INFO]: Sound engine started
[16:07:55] [Client thread/INFO] [FML]: Max texture size: 16384
[16:07:55] [Client thread/INFO]: Created: 16x16 textures-atlas
[16:07:57] [Client thread/INFO] [FML]: Injecting itemstacks
[16:07:57] [Client thread/INFO] [FML]: Itemstack injection complete
[16:07:57] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[16:07:57] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Spy Mod
[16:08:09] [Client thread/INFO]: SoundSystem shutting down...
[16:08:09] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[16:08:09] [Sound Library Loader/INFO]: Starting up SoundSystem...
[16:08:09] [Thread-10/INFO]: Initializing LWJGL OpenAL
[16:08:09] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:08:09] [Thread-10/INFO]: OpenAL initialized.
[16:08:10] [Sound Library Loader/INFO]: Sound engine started
[16:08:25] [Client thread/INFO] [FML]: Max texture size: 16384
[16:08:25] [Client thread/INFO]: Created: 512x512 textures-atlas
[16:08:28] [Client thread/WARN]: Skipping bad option: lastServer:
[16:08:29] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[16:08:50] [Server thread/INFO]: Starting integrated minecraft server version 1.11.2
[16:08:50] [Server thread/INFO]: Generating keypair
[16:08:50] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[16:08:50] [Server thread/INFO] [FML]: Applying holder lookups
[16:08:50] [Server thread/INFO] [FML]: Holder lookups applied
[16:08:50] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@6f9caf6)
[16:08:51] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@6f9caf6)
[16:08:51] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@6f9caf6)
[16:08:51] [Server thread/INFO]: Preparing start region for level 0
[16:08:52] [Server thread/INFO]: Preparing spawn area: 0%
[16:08:53] [Server thread/INFO]: Preparing spawn area: 42%
[16:08:54] [Server thread/INFO]: Preparing spawn area: 95%
[16:08:54] [Server thread/INFO]: Changing view distance to 12, from 10
[16:08:57] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[16:08:57] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[16:08:57] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]
[16:08:57] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[16:08:57] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[16:08:57] [Server thread/INFO]: Player20[local:E:3ad6500a] logged in with entity id 325 at (184.56757332105, 72.0, 241.69999998807907)
[16:08:57] [Server thread/INFO]: Player20 joined the game
[16:09:00] [Server thread/INFO]: Saving and pausing game...
[16:09:00] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[16:09:00] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[16:09:00] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[16:09:00] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@3c01eb26[id=de358e9d-8e5f-32cd-b09f-d8bdf3008cfe,name=Player20,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
 at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?]
 at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?]
 at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?]
 at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?]
 at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]
 at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]
 at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]
 at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]
 at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]
 at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]
 at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]
 at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]
 at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?]
 at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3056) [Minecraft.class:?]
 at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?]
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111]
 at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_111]
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_111]
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_111]
 at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
[16:09:13] [Server thread/INFO]: Player20 has just earned the achievement [Taking Inventory]
[16:09:14] [Client thread/INFO]: [CHAT] Player20 has just earned the achievement [Taking Inventory]
[16:09:20] [Client thread/INFO]: [CHAT] minecraft:acacia_boat, minecraft:acacia_door, minecraft:acacia_fence, minecraft:acacia_fence_gate, minecraft:acacia_stairs, minecraft:activator_rail, minecraft:air, minecraft:anvil, minecraft:apple, minecraft:armor_stand, minecraft:arrow, minecraft:baked_potato, minecraft:banner, minecraft:barrier, minecraft:beacon, minecraft:bed, minecraft:bedrock, minecraft:beef, minecraft:beetroot, minecraft:beetroot_seeds, minecraft:beetroot_soup, minecraft:birch_boat, minecraft:birch_door, minecraft:birch_fence, minecraft:birch_fence_gate, minecraft:birch_stairs, minecraft:black_shulker_box, minecraft:blaze_powder, minecraft:blaze_rod, minecraft:blue_shulker_box, minecraft:boat, minecraft:bone, minecraft:bone_block, minecraft:book, minecraft:bookshelf, minecraft:bow, minecraft:bowl, minecraft:bread, minecraft:brewing_stand, minecraft:brick, minecraft:brick_block, minecraft:brick_stairs, minecraft:brown_mushroom, minecraft:brown_mushroom_block, minecraft:brown_shulker_box, minecraft:bucket, minecraft:cactus, minecraft:cake, minecraft:carpet, minecraft:carrot, minecraft:carrot_on_a_stick, minecraft:cauldron, minecraft:chain_command_block, minecraft:chainmail_boots, minecraft:chainmail_chestplate, minecraft:chainmail_helmet, minecraft:chainmail_leggings, minecraft:chest, minecraft:chest_minecart, minecraft:chicken, minecraft:chorus_flower, minecraft:chorus_fruit, minecraft:chorus_fruit_popped, minecraft:chorus_plant, minecraft:clay, minecraft:clay_ball, minecraft:clock, minecraft:coal, minecraft:coal_block, minecraft:coal_ore, minecraft:cobblestone, minecraft:cobblestone_wall, minecraft:command_block, minecraft:command_block_minecart, minecraft:comparator, minecraft:compass, minecraft:cooked_beef, minecraft:cooked_chicken, minecraft:cooked_fish, minecraft:cooked_mutton, minecraft:cooked_porkchop, minecraft:cooked_rabbit, minecraft:cookie, minecraft:crafting_table, minecraft:cyan_shulker_box, minecraft:dark_oak_boat, minecraft:dark_oak_door, minecraft:dark_oak_fence, minecraft:dark_oak_fence_gate, minecraft:dark_oak_stairs, minecraft:daylight_detector, minecraft:deadbush, minecraft:detector_rail, minecraft:diamond, minecraft:diamond_axe, minecraft:diamond_block, minecraft:diamond_boots, minecraft:diamond_chestplate, minecraft:diamond_helmet, minecraft:diamond_hoe, minecraft:diamond_horse_armor, minecraft:diamond_leggings, minecraft:diamond_ore, minecraft:diamond_pickaxe, minecraft:diamond_shovel, minecraft:diamond_sword, minecraft:dirt, minecraft:dispenser, minecraft:double_plant, minecraft:dragon_breath, minecraft:dragon_egg, minecraft:dropper, minecraft:dye, minecraft:egg, minecraft:elytra, minecraft:emerald, minecraft:emerald_block, minecraft:emerald_ore, minecraft:enchanted_book, minecraft:enchanting_table, minecraft:end_bricks, minecraft:end_crystal, minecraft:end_portal_frame, minecraft:end_rod, minecraft:end_stone, minecraft:ender_chest, minecraft:ender_eye, minecraft:ender_pearl, minecraft:experience_bottle, minecraft:farmland, minecraft:feather, minecraft:fence, minecraft:fence_gate, minecraft:fermented_spider_eye, minecraft:filled_map, minecraft:fire_charge, minecraft:firework_charge, minecraft:fireworks, minecraft:fish, minecraft:fishing_rod, minecraft:flint, minecraft:flint_and_steel, minecraft:flower_pot, minecraft:furnace, minecraft:furnace_minecart, minecraft:ghast_tear, minecraft:glass, minecraft:glass_bottle, minecraft:glass_pane, minecraft:glowstone, minecraft:glowstone_dust, minecraft:gold_block, minecraft:gold_ingot, minecraft:gold_nugget, minecraft:gold_ore, minecraft:golden_apple, minecraft:golden_axe, minecraft:golden_boots, minecraft:golden_carrot, minecraft:golden_chestplate, minecraft:golden_helmet, minecraft:golden_hoe, minecraft:golden_horse_armor, minecraft:golden_leggings, minecraft:golden_pickaxe, minecraft:golden_rail, minecraft:golden_shovel, minecraft:golden_sword, minecraft:grass, minecraft:grass_path, minecraft:gravel, minecraft:gray_shulker_box, minecraft:green_shulker_box, minecraft:gunpowder, minecraft:hardened_clay, minecraft:hay_block, minecraft:heavy_weighted_pressure_plate, minecraft:hopper, minecraft:hopper_minecart, minecraft:ice, minecraft:iron_axe, minecraft:iron_bars, minecraft:iron_block, minecraft:iron_boots, minecraft:iron_chestplate, minecraft:iron_door, minecraft:iron_helmet, minecraft:iron_hoe, minecraft:iron_horse_armor, minecraft:iron_ingot, minecraft:iron_leggings, minecraft:iron_nugget, minecraft:iron_ore, minecraft:iron_pickaxe, minecraft:iron_shovel, minecraft:iron_sword, minecraft:iron_trapdoor, minecraft:item_frame, minecraft:jukebox, minecraft:jungle_boat, minecraft:jungle_door, minecraft:jungle_fence, minecraft:jungle_fence_gate, minecraft:jungle_stairs, minecraft:ladder, minecraft:lapis_block, minecraft:lapis_ore, minecraft:lava_bucket, minecraft:lead, minecraft:leather, minecraft:leather_boots, minecraft:leather_chestplate, minecraft:leather_helmet, minecraft:leather_leggings, minecraft:leaves, minecraft:leaves2, minecraft:lever, minecraft:light_blue_shulker_box, minecraft:light_weighted_pressure_plate, minecraft:lime_shulker_box, minecraft:lingering_potion, minecraft:lit_pumpkin, minecraft:log, minecraft:log2, minecraft:magenta_shulker_box, minecraft:magma, minecraft:magma_cream, minecraft:map, minecraft:melon, minecraft:melon_block, minecraft:melon_seeds, minecraft:milk_bucket, minecraft:minecart, minecraft:mob_spawner, minecraft:monster_egg, minecraft:mossy_cobblestone, minecraft:mushroom_stew, minecraft:mutton, minecraft:mycelium, minecraft:name_tag, minecraft:nether_brick, minecraft:nether_brick_fence, minecraft:nether_brick_stairs, minecraft:nether_star, minecraft:nether_wart, minecraft:nether_wart_block, minecraft:netherbrick, minecraft:netherrack, minecraft:noteblock, minecraft:oak_stairs, minecraft:observer, minecraft:obsidian, minecraft:orange_shulker_box, minecraft:packed_ice, minecraft:painting, minecraft:paper, minecraft:pink_shulker_box, minecraft:piston, minecraft:planks, minecraft:poisonous_potato, minecraft:porkchop, minecraft:potato, minecraft:potion, minecraft:prismarine, minecraft:prismarine_crystals, minecraft:prismarine_shard, minecraft:pumpkin, minecraft:pumpkin_pie, minecraft:pumpkin_seeds, minecraft:purple_shulker_box, minecraft:purpur_block, minecraft:purpur_pillar, minecraft:purpur_slab, minecraft:purpur_stairs, minecraft:quartz, minecraft:quartz_block, minecraft:quartz_ore, minecraft:quartz_stairs, minecraft:rabbit, minecraft:rabbit_foot, minecraft:rabbit_hide, minecraft:rabbit_stew, minecraft:rail, minecraft:record_11, minecraft:record_13, minecraft:record_blocks, minecraft:record_cat, minecraft:record_chirp, minecraft:record_far, minecraft:record_mall, minecraft:record_mellohi, minecraft:record_stal, minecraft:record_strad, minecraft:record_wait, minecraft:record_ward, minecraft:red_flower, minecraft:red_mushroom, minecraft:red_mushroom_block, minecraft:red_nether_brick, minecraft:red_sandstone, minecraft:red_sandstone_stairs, minecraft:red_shulker_box, minecraft:redstone, minecraft:redstone_block, minecraft:redstone_lamp, minecraft:redstone_ore, minecraft:redstone_torch, minecraft:reeds, minecraft:repeater, minecraft:repeating_command_block, minecraft:rotten_flesh, minecraft:saddle, minecraft:sand, minecraft:sandstone, minecraft:sandstone_stairs, minecraft:sapling, minecraft:sea_lantern, minecraft:shears, minecraft:shield, minecraft:shulker_shell, minecraft:sign, minecraft:silver_shulker_box, minecraft:skull, minecraft:slime, minecraft:slime_ball, minecraft:snow, minecraft:snow_layer, minecraft:snowball, minecraft:soul_sand, minecraft:spawn_egg, minecraft:speckled_melon, minecraft:spectral_arrow, minecraft:spider_eye, minecraft:splash_potion, minecraft:sponge, minecraft:spruce_boat, minecraft:spruce_door, minecraft:spruce_fence, minecraft:spruce_fence_gate, minecraft:spruce_stairs, minecraft:stained_glass, minecraft:stained_glass_pane, minecraft:stained_hardened_clay, minecraft:stick, minecraft:sticky_piston, minecraft:stone, minecraft:stone_axe, minecraft:stone_brick_stairs, minecraft:stone_button, minecraft:stone_hoe, minecraft:stone_pickaxe, minecraft:stone_pressure_plate, minecraft:stone_shovel, minecraft:stone_slab, minecraft:stone_slab2, minecraft:stone_stairs, minecraft:stone_sword, minecraft:stonebrick, minecraft:string, minecraft:structure_block, minecraft:structure_void, minecraft:sugar, minecraft:tallgrass, minecraft:tipped_arrow, minecraft:tnt, minecraft:tnt_minecart, minecraft:torch, minecraft:totem_of_undying, minecraft:trapdoor, minecraft:trapped_chest, minecraft:tripwire_hook, minecraft:vine, minecraft:water_bucket, minecraft:waterlily, minecraft:web, minecraft:wheat, minecraft:wheat_seeds, minecraft:white_shulker_box, minecraft:wooden_axe, minecraft:wooden_button, minecraft:wooden_door, minecraft:wooden_hoe, minecraft:wooden_pickaxe, minecraft:wooden_pressure_plate, minecraft:wooden_shovel, minecraft:wooden_slab, minecraft:wooden_sword, minecraft:wool, minecraft:writable_book, minecraft:written_book, minecraft:yellow_flower, minecraft:yellow_shulker_box, spy:itemspymonitor
[16:09:21] [Client thread/INFO]: [CHAT] minecraft:acacia_boat, minecraft:acacia_door, minecraft:acacia_fence, minecraft:acacia_fence_gate, minecraft:acacia_stairs, minecraft:activator_rail, minecraft:air, minecraft:anvil, minecraft:apple, minecraft:armor_stand, minecraft:arrow, minecraft:baked_potato, minecraft:banner, minecraft:barrier, minecraft:beacon, minecraft:bed, minecraft:bedrock, minecraft:beef, minecraft:beetroot, minecraft:beetroot_seeds, minecraft:beetroot_soup, minecraft:birch_boat, minecraft:birch_door, minecraft:birch_fence, minecraft:birch_fence_gate, minecraft:birch_stairs, minecraft:black_shulker_box, minecraft:blaze_powder, minecraft:blaze_rod, minecraft:blue_shulker_box, minecraft:boat, minecraft:bone, minecraft:bone_block, minecraft:book, minecraft:bookshelf, minecraft:bow, minecraft:bowl, minecraft:bread, minecraft:brewing_stand, minecraft:brick, minecraft:brick_block, minecraft:brick_stairs, minecraft:brown_mushroom, minecraft:brown_mushroom_block, minecraft:brown_shulker_box, minecraft:bucket, minecraft:cactus, minecraft:cake, minecraft:carpet, minecraft:carrot, minecraft:carrot_on_a_stick, minecraft:cauldron, minecraft:chain_command_block, minecraft:chainmail_boots, minecraft:chainmail_chestplate, minecraft:chainmail_helmet, minecraft:chainmail_leggings, minecraft:chest, minecraft:chest_minecart, minecraft:chicken, minecraft:chorus_flower, minecraft:chorus_fruit, minecraft:chorus_fruit_popped, minecraft:chorus_plant, minecraft:clay, minecraft:clay_ball, minecraft:clock, minecraft:coal, minecraft:coal_block, minecraft:coal_ore, minecraft:cobblestone, minecraft:cobblestone_wall, minecraft:command_block, minecraft:command_block_minecart, minecraft:comparator, minecraft:compass, minecraft:cooked_beef, minecraft:cooked_chicken, minecraft:cooked_fish, minecraft:cooked_mutton, minecraft:cooked_porkchop, minecraft:cooked_rabbit, minecraft:cookie, minecraft:crafting_table, minecraft:cyan_shulker_box, minecraft:dark_oak_boat, minecraft:dark_oak_door, minecraft:dark_oak_fence, minecraft:dark_oak_fence_gate, minecraft:dark_oak_stairs, minecraft:daylight_detector, minecraft:deadbush, minecraft:detector_rail, minecraft:diamond, minecraft:diamond_axe, minecraft:diamond_block, minecraft:diamond_boots, minecraft:diamond_chestplate, minecraft:diamond_helmet, minecraft:diamond_hoe, minecraft:diamond_horse_armor, minecraft:diamond_leggings, minecraft:diamond_ore, minecraft:diamond_pickaxe, minecraft:diamond_shovel, minecraft:diamond_sword, minecraft:dirt, minecraft:dispenser, minecraft:double_plant, minecraft:dragon_breath, minecraft:dragon_egg, minecraft:dropper, minecraft:dye, minecraft:egg, minecraft:elytra, minecraft:emerald, minecraft:emerald_block, minecraft:emerald_ore, minecraft:enchanted_book, minecraft:enchanting_table, minecraft:end_bricks, minecraft:end_crystal, minecraft:end_portal_frame, minecraft:end_rod, minecraft:end_stone, minecraft:ender_chest, minecraft:ender_eye, minecraft:ender_pearl, minecraft:experience_bottle, minecraft:farmland, minecraft:feather, minecraft:fence, minecraft:fence_gate, minecraft:fermented_spider_eye, minecraft:filled_map, minecraft:fire_charge, minecraft:firework_charge, minecraft:fireworks, minecraft:fish, minecraft:fishing_rod, minecraft:flint, minecraft:flint_and_steel, minecraft:flower_pot, minecraft:furnace, minecraft:furnace_minecart, minecraft:ghast_tear, minecraft:glass, minecraft:glass_bottle, minecraft:glass_pane, minecraft:glowstone, minecraft:glowstone_dust, minecraft:gold_block, minecraft:gold_ingot, minecraft:gold_nugget, minecraft:gold_ore, minecraft:golden_apple, minecraft:golden_axe, minecraft:golden_boots, minecraft:golden_carrot, minecraft:golden_chestplate, minecraft:golden_helmet, minecraft:golden_hoe, minecraft:golden_horse_armor, minecraft:golden_leggings, minecraft:golden_pickaxe, minecraft:golden_rail, minecraft:golden_shovel, minecraft:golden_sword, minecraft:grass, minecraft:grass_path, minecraft:gravel, minecraft:gray_shulker_box, minecraft:green_shulker_box, minecraft:gunpowder, minecraft:hardened_clay, minecraft:hay_block, minecraft:heavy_weighted_pressure_plate, minecraft:hopper, minecraft:hopper_minecart, minecraft:ice, minecraft:iron_axe, minecraft:iron_bars, minecraft:iron_block, minecraft:iron_boots, minecraft:iron_chestplate, minecraft:iron_door, minecraft:iron_helmet, minecraft:iron_hoe, minecraft:iron_horse_armor, minecraft:iron_ingot, minecraft:iron_leggings, minecraft:iron_nugget, minecraft:iron_ore, minecraft:iron_pickaxe, minecraft:iron_shovel, minecraft:iron_sword, minecraft:iron_trapdoor, minecraft:item_frame, minecraft:jukebox, minecraft:jungle_boat, minecraft:jungle_door, minecraft:jungle_fence, minecraft:jungle_fence_gate, minecraft:jungle_stairs, minecraft:ladder, minecraft:lapis_block, minecraft:lapis_ore, minecraft:lava_bucket, minecraft:lead, minecraft:leather, minecraft:leather_boots, minecraft:leather_chestplate, minecraft:leather_helmet, minecraft:leather_leggings, minecraft:leaves, minecraft:leaves2, minecraft:lever, minecraft:light_blue_shulker_box, minecraft:light_weighted_pressure_plate, minecraft:lime_shulker_box, minecraft:lingering_potion, minecraft:lit_pumpkin, minecraft:log, minecraft:log2, minecraft:magenta_shulker_box, minecraft:magma, minecraft:magma_cream, minecraft:map, minecraft:melon, minecraft:melon_block, minecraft:melon_seeds, minecraft:milk_bucket, minecraft:minecart, minecraft:mob_spawner, minecraft:monster_egg, minecraft:mossy_cobblestone, minecraft:mushroom_stew, minecraft:mutton, minecraft:mycelium, minecraft:name_tag, minecraft:nether_brick, minecraft:nether_brick_fence, minecraft:nether_brick_stairs, minecraft:nether_star, minecraft:nether_wart, minecraft:nether_wart_block, minecraft:netherbrick, minecraft:netherrack, minecraft:noteblock, minecraft:oak_stairs, minecraft:observer, minecraft:obsidian, minecraft:orange_shulker_box, minecraft:packed_ice, minecraft:painting, minecraft:paper, minecraft:pink_shulker_box, minecraft:piston, minecraft:planks, minecraft:poisonous_potato, minecraft:porkchop, minecraft:potato, minecraft:potion, minecraft:prismarine, minecraft:prismarine_crystals, minecraft:prismarine_shard, minecraft:pumpkin, minecraft:pumpkin_pie, minecraft:pumpkin_seeds, minecraft:purple_shulker_box, minecraft:purpur_block, minecraft:purpur_pillar, minecraft:purpur_slab, minecraft:purpur_stairs, minecraft:quartz, minecraft:quartz_block, minecraft:quartz_ore, minecraft:quartz_stairs, minecraft:rabbit, minecraft:rabbit_foot, minecraft:rabbit_hide, minecraft:rabbit_stew, minecraft:rail, minecraft:record_11, minecraft:record_13, minecraft:record_blocks, minecraft:record_cat, minecraft:record_chirp, minecraft:record_far, minecraft:record_mall, minecraft:record_mellohi, minecraft:record_stal, minecraft:record_strad, minecraft:record_wait, minecraft:record_ward, minecraft:red_flower, minecraft:red_mushroom, minecraft:red_mushroom_block, minecraft:red_nether_brick, minecraft:red_sandstone, minecraft:red_sandstone_stairs, minecraft:red_shulker_box, minecraft:redstone, minecraft:redstone_block, minecraft:redstone_lamp, minecraft:redstone_ore, minecraft:redstone_torch, minecraft:reeds, minecraft:repeater, minecraft:repeating_command_block, minecraft:rotten_flesh, minecraft:saddle, minecraft:sand, minecraft:sandstone, minecraft:sandstone_stairs, minecraft:sapling, minecraft:sea_lantern, minecraft:shears, minecraft:shield, minecraft:shulker_shell, minecraft:sign, minecraft:silver_shulker_box, minecraft:skull, minecraft:slime, minecraft:slime_ball, minecraft:snow, minecraft:snow_layer, minecraft:snowball, minecraft:soul_sand, minecraft:spawn_egg, minecraft:speckled_melon, minecraft:spectral_arrow, minecraft:spider_eye, minecraft:splash_potion, minecraft:sponge, minecraft:spruce_boat, minecraft:spruce_door, minecraft:spruce_fence, minecraft:spruce_fence_gate, minecraft:spruce_stairs, minecraft:stained_glass, minecraft:stained_glass_pane, minecraft:stained_hardened_clay, minecraft:stick, minecraft:sticky_piston, minecraft:stone, minecraft:stone_axe, minecraft:stone_brick_stairs, minecraft:stone_button, minecraft:stone_hoe, minecraft:stone_pickaxe, minecraft:stone_pressure_plate, minecraft:stone_shovel, minecraft:stone_slab, minecraft:stone_slab2, minecraft:stone_stairs, minecraft:stone_sword, minecraft:stonebrick, minecraft:string, minecraft:structure_block, minecraft:structure_void, minecraft:sugar, minecraft:tallgrass, minecraft:tipped_arrow, minecraft:tnt, minecraft:tnt_minecart, minecraft:torch, minecraft:totem_of_undying, minecraft:trapdoor, minecraft:trapped_chest, minecraft:tripwire_hook, minecraft:vine, minecraft:water_bucket, minecraft:waterlily, minecraft:web, minecraft:wheat, minecraft:wheat_seeds, minecraft:white_shulker_box, minecraft:wooden_axe, minecraft:wooden_button, minecraft:wooden_door, minecraft:wooden_hoe, minecraft:wooden_pickaxe, minecraft:wooden_pressure_plate, minecraft:wooden_shovel, minecraft:wooden_slab, minecraft:wooden_sword, minecraft:wool, minecraft:writable_book, minecraft:written_book, minecraft:yellow_flower, minecraft:yellow_shulker_box, spy:itemspymonitor
[16:09:21] [Client thread/INFO]: [CHAT] minecraft:acacia_boat, minecraft:acacia_door, minecraft:acacia_fence, minecraft:acacia_fence_gate, minecraft:acacia_stairs, minecraft:activator_rail, minecraft:air, minecraft:anvil, minecraft:apple, minecraft:armor_stand, minecraft:arrow, minecraft:baked_potato, minecraft:banner, minecraft:barrier, minecraft:beacon, minecraft:bed, minecraft:bedrock, minecraft:beef, minecraft:beetroot, minecraft:beetroot_seeds, minecraft:beetroot_soup, minecraft:birch_boat, minecraft:birch_door, minecraft:birch_fence, minecraft:birch_fence_gate, minecraft:birch_stairs, minecraft:black_shulker_box, minecraft:blaze_powder, minecraft:blaze_rod, minecraft:blue_shulker_box, minecraft:boat, minecraft:bone, minecraft:bone_block, minecraft:book, minecraft:bookshelf, minecraft:bow, minecraft:bowl, minecraft:bread, minecraft:brewing_stand, minecraft:brick, minecraft:brick_block, minecraft:brick_stairs, minecraft:brown_mushroom, minecraft:brown_mushroom_block, minecraft:brown_shulker_box, minecraft:bucket, minecraft:cactus, minecraft:cake, minecraft:carpet, minecraft:carrot, minecraft:carrot_on_a_stick, minecraft:cauldron, minecraft:chain_command_block, minecraft:chainmail_boots, minecraft:chainmail_chestplate, minecraft:chainmail_helmet, minecraft:chainmail_leggings, minecraft:chest, minecraft:chest_minecart, minecraft:chicken, minecraft:chorus_flower, minecraft:chorus_fruit, minecraft:chorus_fruit_popped, minecraft:chorus_plant, minecraft:clay, minecraft:clay_ball, minecraft:clock, minecraft:coal, minecraft:coal_block, minecraft:coal_ore, minecraft:cobblestone, minecraft:cobblestone_wall, minecraft:command_block, minecraft:command_block_minecart, minecraft:comparator, minecraft:compass, minecraft:cooked_beef, minecraft:cooked_chicken, minecraft:cooked_fish, minecraft:cooked_mutton, minecraft:cooked_porkchop, minecraft:cooked_rabbit, minecraft:cookie, minecraft:crafting_table, minecraft:cyan_shulker_box, minecraft:dark_oak_boat, minecraft:dark_oak_door, minecraft:dark_oak_fence, minecraft:dark_oak_fence_gate, minecraft:dark_oak_stairs, minecraft:daylight_detector, minecraft:deadbush, minecraft:detector_rail, minecraft:diamond, minecraft:diamond_axe, minecraft:diamond_block, minecraft:diamond_boots, minecraft:diamond_chestplate, minecraft:diamond_helmet, minecraft:diamond_hoe, minecraft:diamond_horse_armor, minecraft:diamond_leggings, minecraft:diamond_ore, minecraft:diamond_pickaxe, minecraft:diamond_shovel, minecraft:diamond_sword, minecraft:dirt, minecraft:dispenser, minecraft:double_plant, minecraft:dragon_breath, minecraft:dragon_egg, minecraft:dropper, minecraft:dye, minecraft:egg, minecraft:elytra, minecraft:emerald, minecraft:emerald_block, minecraft:emerald_ore, minecraft:enchanted_book, minecraft:enchanting_table, minecraft:end_bricks, minecraft:end_crystal, minecraft:end_portal_frame, minecraft:end_rod, minecraft:end_stone, minecraft:ender_chest, minecraft:ender_eye, minecraft:ender_pearl, minecraft:experience_bottle, minecraft:farmland, minecraft:feather, minecraft:fence, minecraft:fence_gate, minecraft:fermented_spider_eye, minecraft:filled_map, minecraft:fire_charge, minecraft:firework_charge, minecraft:fireworks, minecraft:fish, minecraft:fishing_rod, minecraft:flint, minecraft:flint_and_steel, minecraft:flower_pot, minecraft:furnace, minecraft:furnace_minecart, minecraft:ghast_tear, minecraft:glass, minecraft:glass_bottle, minecraft:glass_pane, minecraft:glowstone, minecraft:glowstone_dust, minecraft:gold_block, minecraft:gold_ingot, minecraft:gold_nugget, minecraft:gold_ore, minecraft:golden_apple, minecraft:golden_axe, minecraft:golden_boots, minecraft:golden_carrot, minecraft:golden_chestplate, minecraft:golden_helmet, minecraft:golden_hoe, minecraft:golden_horse_armor, minecraft:golden_leggings, minecraft:golden_pickaxe, minecraft:golden_rail, minecraft:golden_shovel, minecraft:golden_sword, minecraft:grass, minecraft:grass_path, minecraft:gravel, minecraft:gray_shulker_box, minecraft:green_shulker_box, minecraft:gunpowder, minecraft:hardened_clay, minecraft:hay_block, minecraft:heavy_weighted_pressure_plate, minecraft:hopper, minecraft:hopper_minecart, minecraft:ice, minecraft:iron_axe, minecraft:iron_bars, minecraft:iron_block, minecraft:iron_boots, minecraft:iron_chestplate, minecraft:iron_door, minecraft:iron_helmet, minecraft:iron_hoe, minecraft:iron_horse_armor, minecraft:iron_ingot, minecraft:iron_leggings, minecraft:iron_nugget, minecraft:iron_ore, minecraft:iron_pickaxe, minecraft:iron_shovel, minecraft:iron_sword, minecraft:iron_trapdoor, minecraft:item_frame, minecraft:jukebox, minecraft:jungle_boat, minecraft:jungle_door, minecraft:jungle_fence, minecraft:jungle_fence_gate, minecraft:jungle_stairs, minecraft:ladder, minecraft:lapis_block, minecraft:lapis_ore, minecraft:lava_bucket, minecraft:lead, minecraft:leather, minecraft:leather_boots, minecraft:leather_chestplate, minecraft:leather_helmet, minecraft:leather_leggings, minecraft:leaves, minecraft:leaves2, minecraft:lever, minecraft:light_blue_shulker_box, minecraft:light_weighted_pressure_plate, minecraft:lime_shulker_box, minecraft:lingering_potion, minecraft:lit_pumpkin, minecraft:log, minecraft:log2, minecraft:magenta_shulker_box, minecraft:magma, minecraft:magma_cream, minecraft:map, minecraft:melon, minecraft:melon_block, minecraft:melon_seeds, minecraft:milk_bucket, minecraft:minecart, minecraft:mob_spawner, minecraft:monster_egg, minecraft:mossy_cobblestone, minecraft:mushroom_stew, minecraft:mutton, minecraft:mycelium, minecraft:name_tag, minecraft:nether_brick, minecraft:nether_brick_fence, minecraft:nether_brick_stairs, minecraft:nether_star, minecraft:nether_wart, minecraft:nether_wart_block, minecraft:netherbrick, minecraft:netherrack, minecraft:noteblock, minecraft:oak_stairs, minecraft:observer, minecraft:obsidian, minecraft:orange_shulker_box, minecraft:packed_ice, minecraft:painting, minecraft:paper, minecraft:pink_shulker_box, minecraft:piston, minecraft:planks, minecraft:poisonous_potato, minecraft:porkchop, minecraft:potato, minecraft:potion, minecraft:prismarine, minecraft:prismarine_crystals, minecraft:prismarine_shard, minecraft:pumpkin, minecraft:pumpkin_pie, minecraft:pumpkin_seeds, minecraft:purple_shulker_box, minecraft:purpur_block, minecraft:purpur_pillar, minecraft:purpur_slab, minecraft:purpur_stairs, minecraft:quartz, minecraft:quartz_block, minecraft:quartz_ore, minecraft:quartz_stairs, minecraft:rabbit, minecraft:rabbit_foot, minecraft:rabbit_hide, minecraft:rabbit_stew, minecraft:rail, minecraft:record_11, minecraft:record_13, minecraft:record_blocks, minecraft:record_cat, minecraft:record_chirp, minecraft:record_far, minecraft:record_mall, minecraft:record_mellohi, minecraft:record_stal, minecraft:record_strad, minecraft:record_wait, minecraft:record_ward, minecraft:red_flower, minecraft:red_mushroom, minecraft:red_mushroom_block, minecraft:red_nether_brick, minecraft:red_sandstone, minecraft:red_sandstone_stairs, minecraft:red_shulker_box, minecraft:redstone, minecraft:redstone_block, minecraft:redstone_lamp, minecraft:redstone_ore, minecraft:redstone_torch, minecraft:reeds, minecraft:repeater, minecraft:repeating_command_block, minecraft:rotten_flesh, minecraft:saddle, minecraft:sand, minecraft:sandstone, minecraft:sandstone_stairs, minecraft:sapling, minecraft:sea_lantern, minecraft:shears, minecraft:shield, minecraft:shulker_shell, minecraft:sign, minecraft:silver_shulker_box, minecraft:skull, minecraft:slime, minecraft:slime_ball, minecraft:snow, minecraft:snow_layer, minecraft:snowball, minecraft:soul_sand, minecraft:spawn_egg, minecraft:speckled_melon, minecraft:spectral_arrow, minecraft:spider_eye, minecraft:splash_potion, minecraft:sponge, minecraft:spruce_boat, minecraft:spruce_door, minecraft:spruce_fence, minecraft:spruce_fence_gate, minecraft:spruce_stairs, minecraft:stained_glass, minecraft:stained_glass_pane, minecraft:stained_hardened_clay, minecraft:stick, minecraft:sticky_piston, minecraft:stone, minecraft:stone_axe, minecraft:stone_brick_stairs, minecraft:stone_button, minecraft:stone_hoe, minecraft:stone_pickaxe, minecraft:stone_pressure_plate, minecraft:stone_shovel, minecraft:stone_slab, minecraft:stone_slab2, minecraft:stone_stairs, minecraft:stone_sword, minecraft:stonebrick, minecraft:string, minecraft:structure_block, minecraft:structure_void, minecraft:sugar, minecraft:tallgrass, minecraft:tipped_arrow, minecraft:tnt, minecraft:tnt_minecart, minecraft:torch, minecraft:totem_of_undying, minecraft:trapdoor, minecraft:trapped_chest, minecraft:tripwire_hook, minecraft:vine, minecraft:water_bucket, minecraft:waterlily, minecraft:web, minecraft:wheat, minecraft:wheat_seeds, minecraft:white_shulker_box, minecraft:wooden_axe, minecraft:wooden_button, minecraft:wooden_door, minecraft:wooden_hoe, minecraft:wooden_pickaxe, minecraft:wooden_pressure_plate, minecraft:wooden_shovel, minecraft:wooden_slab, minecraft:wooden_sword, minecraft:wool, minecraft:writable_book, minecraft:written_book, minecraft:yellow_flower, minecraft:yellow_shulker_box, spy:itemspymonitor
[16:09:25] [Server thread/INFO]: [Player20: Given [item.spy.spymonitor.name] * 1 to Player20]
[16:09:25] [Client thread/INFO]: [CHAT] Given [item.spy.spymonitor.name] * 1 to Player20
[16:09:39] [Client thread/INFO]: [CHAT] Usage: /entitydata <entity> <dataTag>
[16:09:42] [Client thread/INFO]: [CHAT] The data tag did not change: {Motion:[0:3.0470190261469115E-271d,1:-0.0d,2:8.303235850163953E-271d],UUIDLeast:-6540169949090037825L,Health:5s,Invulnerable:0b,Air:300s,OnGround:1b,Dimension:0,PortalCooldown:0,Rotation:[0:313.49594f,1:0.0f],UpdateBlocked:0b,FallDistance:0.0f,Item:{id:"minecraft:egg",Count:1b,Damage:0s},UUIDMost:8681390495735762655L,Pos:[0:161.74868970503599d,1:67.0d,2:214.6279385211553d],PickupDelay:0s,Fire:-1s,Lifespan:6000,Age:1174s}
[16:10:06] [Client thread/INFO]: [CHAT] The data tag did not change: {Motion:[0:2.964483634367665E-12d,1:-0.0d,2:6.428445466170757E-13d],UUIDLeast:-6808456343155485123L,Health:5s,Invulnerable:0b,Air:300s,OnGround:1b,Dimension:0,PortalCooldown:0,Rotation:[0:153.58057f,1:0.0f],Thrower:"Player20",UpdateBlocked:0b,FallDistance:0.0f,Item:{id:"spy:itemspymonitor",Count:1b,tag:{Cameras:[]},Damage:0s},UUIDMost:6177359067307197258L,Pos:[0:186.88804164105372d,1:72.0d,2:241.3865327706451d],PickupDelay:0s,Fire:-1s,Lifespan:6000,Age:54s}
[16:10:22] [Client thread/INFO]: [STDOUT]: lol
[16:10:27] [Client thread/INFO]: [CHAT] The data tag did not change: {Motion:[0:1.0505895116581467E-4d,1:-0.0d,2:8.951739730086556E-5d],UUIDLeast:-7451687127837778582L,Health:5s,Invulnerable:0b,Air:300s,OnGround:1b,Dimension:0,PortalCooldown:0,Rotation:[0:359.66385f,1:0.0f],Thrower:"Player20",UpdateBlocked:0b,FallDistance:0.0f,Item:{id:"spy:itemspymonitor",Count:1b,tag:{Cameras:[]},Damage:0s},UUIDMost:7057424687036321207L,Pos:[0:188.2402945453734d,1:72.0d,2:243.15364099528875d],PickupDelay:18s,Fire:-1s,Lifespan:6000,Age:22s}
[16:11:40] [Server thread/INFO]: [Player20: Given [item.spy.spymonitor.name] * 1 to Player20]
[16:11:40] [Client thread/INFO]: [CHAT] Given [item.spy.spymonitor.name] * 1 to Player20
[16:11:45] [Client thread/INFO]: [STDOUT]: lol
[16:11:50] [Client thread/INFO]: [CHAT] The data tag did not change: {Motion:[0:-4.9E-324d,1:-0.0d,2:4.9E-324d],UUIDLeast:-5890511068413178082L,Health:5s,Invulnerable:0b,Air:300s,OnGround:1b,Dimension:0,PortalCooldown:0,Rotation:[0:191.46526f,1:0.0f],UpdateBlocked:0b,FallDistance:0.0f,Item:{id:"minecraft:egg",Count:1b,Damage:0s},UUIDMost:-4405119497086222119L,Pos:[0:159.84735571730334d,1:67.0d,2:220.29503074375143d],PickupDelay:0s,Fire:-1s,Lifespan:6000,Age:2290s}
[16:11:52] [Client thread/INFO]: [CHAT] The data tag did not change: {Motion:[0:8.489991178632142E-7d,1:-0.0d,2:8.539211304974861E-7d],UUIDLeast:-7714315807099588773L,Health:5s,Invulnerable:0b,Air:300s,OnGround:1b,Dimension:0,PortalCooldown:0,Rotation:[0:229.12987f,1:0.0f],Thrower:"Player20",UpdateBlocked:0b,FallDistance:0.0f,Item:{id:"spy:itemspymonitor",Count:1b,tag:{Cameras:[]},Damage:0s},UUIDMost:-6283782685905236331L,Pos:[0:189.2379672393047d,1:72.0d,2:244.47194984290422d],PickupDelay:12s,Fire:-1s,Lifespan:6000,Age:28s}
[16:12:56] [Client thread/INFO]: [STDOUT]: lol
[16:13:04] [Client thread/INFO]: [CHAT] The data tag did not change: {Motion:[0:4.784328162423563E-7d,1:-0.0d,2:4.702100979896569E-7d],UUIDLeast:-7228784464972408130L,Health:5s,Invulnerable:0b,Air:300s,OnGround:1b,Dimension:0,PortalCooldown:0,Rotation:[0:109.43876f,1:0.0f],Thrower:"Player20",UpdateBlocked:0b,FallDistance:0.0f,Item:{id:"spy:itemspymonitor",Count:1b,tag:{Cameras:[]},Damage:0s},UUIDMost:-7078765283890608668L,Pos:[0:189.5568149321529d,1:72.0d,2:244.75487393092132d],PickupDelay:9s,Fire:-1s,Lifespan:6000,Age:31s}
[16:23:44] [Server thread/INFO]: [Player20: Given [item.spy.spymonitor.name] * 1 to Player20]
[16:23:44] [Client thread/INFO]: [CHAT] Given [item.spy.spymonitor.name] * 1 to Player20
[16:23:47] [Client thread/INFO]: [STDOUT]: lol
[16:23:52] [Client thread/INFO]: [CHAT] The data tag did not change: {Motion:[0:4.9E-324d,1:-0.0d,2:4.9E-324d],UUIDLeast:-5306933439073740840L,Health:5s,Invulnerable:0b,Air:300s,OnGround:1b,Dimension:0,PortalCooldown:0,Rotation:[0:280.87418f,1:0.0f],UpdateBlocked:0b,FallDistance:0.0f,Item:{id:"minecraft:egg",Count:1b,Damage:0s},UUIDMost:4308389616594406013L,Pos:[0:156.5204277871262d,1:66.0d,2:214.17700480396104d],PickupDelay:0s,Fire:-1s,Lifespan:6000,Age:3468s}
[16:23:54] [Client thread/INFO]: [CHAT] The data tag did not change: {Motion:[0:4.295219280001027E-6d,1:-0.0d,2:3.4943979348277374E-6d],UUIDLeast:-6171674589861545247L,Health:5s,Invulnerable:0b,Air:300s,OnGround:1b,Dimension:0,PortalCooldown:0,Rotation:[0:148.42451f,1:0.0f],Thrower:"Player20",UpdateBlocked:0b,FallDistance:0.0f,Item:{id:"spy:itemspymonitor",Count:1b,tag:{Cameras:[]},Damage:0s},UUIDMost:7813438263018540333L,Pos:[0:187.3775304589657d,1:72.0d,2:243.39787429709017d],PickupDelay:14s,Fire:-1s,Lifespan:6000,Age:26s}

 

Edited by lukas2005
Posted

GUIs only exist on the client, but the server is in control of the game state. You need to send a custom packet to the server when the player clicks the button and make the changes to the player's held item in the packet's handler.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted
Just now, Choonster said:

GUIs only exist on the client, but the server is in control of the game state. You need to send a custom packet to the server when the player clicks the button and make the changes to the player's held item in the packet's handler.

i thought that item nbt sync automatically

Posted
14 minutes ago, lukas2005 said:

i thought that item nbt sync automatically

In one direction.

As Choonster said, the server controls the state of the game and item NBT is considered "state information." So yes, NBT is updated automatically and the server's copy overwrites the client's.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

You don't. You use a container, the container specifies the slots and the gui screen (the super class) uses the supplied container to draw them.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
12 minutes ago, Draco18s said:

You don't. You use a container, the container specifies the slots and the gui screen (the super class) uses the supplied container to draw them.

how do i implement a container ? i want to make a single slot wich is gonna be used just to link a camera item with monitor item

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
    • Do you use features of inventory profiles next (ipnext) or is there a change without it?
    • Remove rubidium - you are already using embeddium, which is a fork of rubidium
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.