-
Posts
422 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Novârch
-
Take a look at BeehiveBlock and BeehiveTileEntity.
-
Making my own moded server - crashing after 30 seconds
Novârch replied to kimber409's topic in Support & Bug Reports
1.7.10 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. -
If it's a vanilla entity, use PlayerInteractEvent.EntityInteract or PlayerInteractEvent.EntityInteractSpecific, if it's your own entity, do what diesieben said.
-
Just make either a static list or a HashMap. What's your use case, knowing it will help. DO NOT do this, vanilla did this with Ender pearls up to 1.13 and it lead to major exploits, what if a player changes their name? Instead use the player's UUID (PlayerEntitygetUniqueId). Edit: Use a HashMap, just used one for my own mod, here's a link to the class where I use it, in my case I'm storing a PlayerEntity as the key and a DimensionType as the value, then I'm using the values to teleport each player to their corresponding dimension.
-
First you'll have to use a deobfuscator like BON2, because mods' source code gets obfuscated when building it, then use a decompiler, like FernFlower to convert the class files from the jar to Java files.
-
Yes, you should, modding isn't a good way to learn Java, get used to the language before trying to make something, think about trying to write a book in a language you aren't familiar with.
-
Take a look at PlayerInteractEvent.RightClickBlock.
-
There's a link at THE TOP OF EVERY PAGE explaining it,
-
[1.15.2] Adding an enchanted item to a crafting recipe
Novârch replied to 65_7a's topic in Modder Support
I'd take a look at PlayerEvent.ItemCraftedEvent. -
1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
-
1.8 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
-
Please provide your debug.log.
-
First of all, the way you're making keybinds is horrible, here's an example of how I make keybinds in my mod. Your problem seems to be that you aren't SYNCING your capability to the CLIENT. Capabilities are stored only on the server by default, check out this example of how I sync capabilities in my mod (you also have to sync on the player logging in, changing dimensiom, leaving the end and respawning). Also, why do you have a public static class in you CapabilityHandler class, it serves no purpose at all, just remove it.
-
I fixed it, I've made a pull request on GitHub if you're interested. I did exactly as I said you should (made a static transaction list and resolved it in ServerTickEvent). A comprehensive explanation of what you did wrong can be found in the pull request.
-
I would personally keep a static list of transactions and resolve the transactions in an event (likeServerTickEvent).
-
Please don't necro old threads, make your own. By the way, 1.12 is no longer supported on this forum.
-
Minecraft 1.15.2 forge give error when I create a world
Novârch replied to mertoalex's topic in Support & Bug Reports
Immersive Portals seems to be the issue, try without it, personally I've found it to be quite buggy. If that doesn't work try without Optifine, other than that post debug.log, it's way more helpful than crash reports. By the way, how are you running over 200 mods with integrated graphics? -
Can you just tell us what you want to acomplish? Helping you is much easier if we know what you want to do.
-
Then why are you sending a packet to the server? Shouldn't you send a packet from the server to the client to sync the inventory?
-
Isn't inventory data not synced to the CLIENT?
-
Please look at NetherPortalBlock, it has everything you want. Edit: EndPortalBlock is even more concise, take a look it it too.
-
Lion King Shirt That Embodies Your Strength And Style
Novârch replied to RaulAlonso's topic in Support & Bug Reports
Check if it's an instance of OreBlock. Not going to happen, from what I've seen a lot of modders don't extend OreBlock for custom ores. -
Why...? Just use !isDaytime.