-
[1.16.5] Adding External Jar into classpath
Anyone have any clue or should i just give up ?
-
[1.16.5] Adding External Jar into classpath
Hi, im trying to make a modular server sided mod. And i need to be able to add the libs after the mod has loaded/while its loading into the classpath. But i can't find anything that would let me do that ? Basically i want to check the config and if the discord module is loaded add the jda jar thats been downloaded locally to the classpath so it can access the jda classes.
-
Getting all loot possible in a loot table
I was trying to basically make a lootcrate mod using the loot tables as the base itemset. And wanted to be able to show a preview of all the items you can get
-
Getting all loot possible in a loot table
I was wondering if there's a way to get all the loot that's possible to get in a loot table ? Like if i wanted to see all the items i could possible get in the end_city_treasure loot table for example
-
Packet Inspection Query
Ok so im trying to track down what exactly is causing an nbt packet issue randomly on connection to a server. I thought the easiest way to do this would be to have a mod that's client side and just prints packet information. My question though is, is there anyway of getting what mod is sending the packet and what size it is ? So that i can compare to the packet causing the issue and then track it down further from that.
-
Can client read server mods
I was just wondering while i was coding, no reasoning to it
-
Can client read server mods
I know the server can read the mods a client has but was wondering can it be done the other way round ?
-
[1.10.2] [Solved} Boolean Won't work, 100% confused as to why
Because i just wanted a simple and quick way to store a players true or false on this bit of code. It may be ugly but for my needs it fits. I have tried multiple ways of the boolean, still get the issue, this was just the latest way i tried. The playerpresent just gets whether the player is online. Here's the full part of that, its using some Sponge methods as its part Sponge and part Forge public void onBlockPlace(ChangeBlockEvent.Place event) { if (AdminUtilsSponge.getInstance().getWorldWarningBoolean()) { String world = event.getTargetWorld().getName(); String worldslist = String.join(", ", AdminUtilsSponge.getInstance().getWorldList()); Optional<Player> player = event.getCause().first(Player.class); Boolean playerpresent = player.isPresent(); String name = player.get().getName(); UUID uuid = player.get().getUniqueId(); EntityPlayer forgeplayer = FMLCommonHandler.instance().getMinecraftServerInstance().getPlayerList().getPlayerByUUID(uuid); String block = event.getTransactions().get(0).getFinal().getState().getType().getName(); NBTTagCompound data = forgeplayer.getEntityData(); data.setTag("AdminUtils", new NBTTagCompound()); NBTTagCompound adminnbt = data.getCompoundTag("AdminUtils"); adminnbt.setTag("WorldWarnings", new NBTTagCompound()); NBTTagCompound worldwarnings = adminnbt.getCompoundTag("WorldWarnings"); Boolean warning = worldwarnings.getBoolean(world); if (playerpresent) { if (!(worldslist.contains(world))) { if (warning) { System.out.print(String.valueOf(worldwarnings.getBoolean(world))); } } } } }
-
[1.10.2] [Solved} Boolean Won't work, 100% confused as to why
Ok so i have a boolean getting true or false from nbt of a player. When i run print on the boolen it clearly shows true or false but when using it in an if statement it doesnt seem to work. This is the part where im using the boolean - NBTTagCompound data = forgeplayer.getEntityData(); data.setTag("AdminUtils", new NBTTagCompound()); NBTTagCompound adminnbt = data.getCompoundTag("AdminUtils"); adminnbt.setTag("WorldWarnings", new NBTTagCompound()); NBTTagCompound worldwarnings = adminnbt.getCompoundTag("WorldWarnings"); Boolean warning = worldwarnings.getBoolean(world); if (playerpresent) { if (!(worldslist.contains(world))) { if (warning) { System.out.print(String.valueOf(warning); } } }
-
[1.10.2] Messaging a specific player or players when a command is run
I was already getting the usernames correctly just paraphrased it as a list in this, which was probably a mistake. But either way, once i've gotten the username/s how can i send them a message from the server/mod without them being the CommandSender
-
[1.10.2] Messaging a specific player or players when a command is run
That sends it to the CommandSender though, i don't want the commandsender to be sent the message. The message i want to be sent to a List of usernames/uuids.
-
[1.10.2] Messaging a specific player or players when a command is run
I haven't really tried anything as all i can find are ways to message the commandsender. Or am i just missing a optional parameter ?
-
[1.10.2] Messaging a specific player or players when a command is run
Im currently trying to make it so that if you run a command and a player thats in a list of strings is online it will message that player telling them what command you just ran, but i seem to be unable to find anyway of messaging that list of strings. any help would be greatful
-
[1.10.2] [Solved] Give ItemStack containing properties
That worked thanks, don't usually deal with metadata so wasnt sure on the statements to use.
-
[1.10.2] [Solved] Give ItemStack containing properties
So i'm having an issue, no matter how i try to do this i can't get it to work. I'm probably just completely being blind but thought i would just come here and ask instead. How do i give an ItemStack that contains properties for example new ItemStack(ModBlocks.compressedBlock.getDefaultState().withProperty(BlockCompressed.VARIANT, Type.GRAVEL), 1)
IPS spam blocked by CleanTalk.