Crashing on trying to enter Singleplayer Menu
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
By SlimedLeviathan · Posted
Ok I solved the problem, but I still don't know why the previous code doesn't work. (And bc i know how awful it is to find a forum post that solved the problem and gave no solution I'm going to give my solution) I had a problem in the previous code, where clicking an entity that had other clicking code (such as a horse or villager), the entities code would activate first, which isn't what I wanted. So instead, I used EntityInteract and subscribed the event to the event bus. For whatever reason, this allowed the tags to save. // Inside of MainItem Class // Subscribe to the player event for interacting with living entities and see if tags will save there @SubscribeEvent(priority = EventPriority.HIGHEST) public static void EntityInteract(PlayerInteractEvent.EntityInteract event) { var stack = event.getItemStack(); if (stack.getItem() instanceof MainItem && event.getTarget() instanceof LivingEntity){ var entityNameTag = new CompoundTag(); entityNameTag.putString("held_entity", event.getTarget().getEncodeID()); event.getItemStack().setTag(entityNameTag); if (event.hasResult()) { event.setResult(Result.ALLOW); // my theory is that THIS is what allows the tags to get set, but i have zero idea otherwise } } } //Inside of my Mod File public Mod(){ // ... MinecraftForge.EVENT_BUS.register(MainItem.class); // ... } -
ah nevermind I found out I just had to expand the packet size
-
By AlphaIceCube · Posted
Hello! I would like to do a mod collab with a fellow mod maker If you want to reply with "me" and we could start a private message and agree what version and time we both will be online to do the mod together. (We don't have to be both online to do the mod, I can just share it and we can both do the mod whenever we like!) -
I created my own modpack but whenever I'm trying to create or load a singleplayer world I get the invalid player data and get booted to the multiplayer screen. link to the log: https://drive.google.com/file/d/18EyWEzc8aLcfHTiek-e8CNSmQRTYIGtI/view?usp=sharing
-
By AlphaIceCube · Posted
* The RF API that is being used (1.7.10R1.0.2 from <unknown>) differes from that that is reported as being loaded (1.7.10R1.0.13 from EnderIO-1.7.10-2.3.0.430_beta.jar). I recommend get the correct version it's showing here.
-
-
Topics
-
Who's Online (See full list)
Recommended Posts
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.