warjort
Members-
Posts
5420 -
Joined
-
Last visited
-
Days Won
175
Everything posted by warjort
-
A quick search finds this example in the Botania mod updating tags during inventoryTick, so my concern about that is probably not correct? https://github.com/VazkiiMods/Botania/blob/0568ec726bd42c506cdfa00705159dbe9b897b46/Xplat/src/main/java/vazkii/botania/common/item/equipment/tool/VitreousPickaxeItem.java#L90
-
If you want help with your code, put a reproducable example of your problem on github. Not random and incomplete code snippets out of context in this forum. We need to see how the code fits together and maybe try it for ourselves if the problem is not obvious I am not very familiar with inventoryTick and what rules apply to it. It is mostly used by Mojang to do animation related stuff on the client, But one place they do use it on the server is to update MapItem information. This does not modify the actual item, instead it updates information stored elsewhere. It would not suprise to learn that modifying an ItemStack while the game is iterating over the inventory causes it to become very confused. The tags on an ItemStack form part of its "identity". But I don't know that for sure.
-
It is very tiresome posting this on every thread in this forum: If you want help with your code, put a reproducable example of your problem on github. Not random and incomplete code snippets out of context in this forum. We need to see how the code fits together and maybe try it for ourselves if the problem is not obvious. I don't actually know because I never tried it, but I bet using EntityType.spawn() for an experience orb sets the experience value to 0? You should create the ORB yourself and then call serverLevel.addFreshEntity(). See for example Animal.finalizeSpawnChildFromBreeding() For you other question, maybe? if pTarget instanceof Monster or maybe you want to get check if the mob is targetting the player using Entity.getTarget ?
-
That means put the build of a project on github that demonstrates the issue. Not random and incomplete code snippets out of context. We need to see how the code fits together and maybe try it for ourselves if the problem is not obvious. Anyway, If that really is all your code, you are missing the EntityAttributeCreationEvent for your mob. https://forge.gemwire.uk/wiki/Making_Entities#Entity_Attributes You seem to have a static method for this called setAttributes() in your code - but I guess nothing calls it?
-
1.20.4 [1.20.4] Config file not working for ShieldItem
warjort replied to Rajhab's topic in Modder Support
Also if you want help with your code, you need to post reproducable examples of the problem on github. Not small snippets of code in the forum that contain that have no context. -
1.20.4 [1.20.4] Config file not working for ShieldItem
warjort replied to Rajhab's topic in Modder Support
You cannot access config during registration. https://forge.gemwire.uk/wiki/Stages_of_Modloading https://forge.gemwire.uk/wiki/Configs As I said on your hijack of the other thread, this question has been asked and answered many times before. You can use search instead of posting repeat questions. In your case, that config needs to be a server config so that client and server agree on what the durability is. Otherwise you will get inconsistencies. Basicially the value won't be known until the player joins the server, either loading a world in single player world or joining a remote server. That also means different single player worlds can set different values (like how game rules work). In your registration of the item you should set it some default value so the game knows the item has durablity. It does not matter what value you set as long as it not zero which would mean the item has no durability. That value won't actually be used because you have overridden the method to get the value from somewhere else. -
1.20.1 Forge 1.20.1 v47.2.0 keeps getting error code 1 (Help!)
warjort replied to BananaMan45's topic in Support & Bug Reports
Read the FAQ about fixing/updating graphics drivers. -
Forge 1.20.4-49.0.14 Obfuscated Imports?
warjort replied to jasonmbrown's topic in Support & Bug Reports
Those are the old forge names from minecraft/forge 1.16 and before. You want mojang official names for those classes which Forge switched to by default in 1.17 PlayerEntity -> ServerPlayer World -> Level If you are going to use tutorials you need to make sure they are for the version you are developing with. Mojang tend to have lots in "churn" in their codebase. I believe there used to be a bot on Forge's discord that let you look up the changed name to help people migrate from 1.16 to 1.17 If it still exists (I don't use discord so don't know) it is probably out of date by now but might still have some use? -
Forge 1.20.4-49.0.14 Obfuscated Imports?
warjort replied to jasonmbrown's topic in Support & Bug Reports
Don't post code snippets out of context in the forums, put a complete example of your problem on github where we can see everything. But if you are posting compiler errors, you want a learning java forum not a minecraft modding forum. -
Put a reproducable example of your problem on github.
-
pTarget.isAlive() ? There is also this event for when entities die, telling you how they die and what caused it: https://github.com/MinecraftForge/MinecraftForge/blob/817e20821d04225e2b39e2ce64be9b70c8ddfa27/src/main/java/net/minecraftforge/event/entity/living/LivingDeathEvent.java#L16
-
Forge crash no mods exit code 1
warjort replied to AlternativePines's topic in Support & Bug Reports
Read the FAQ at the top of the forum about fixing graphics drivers. -
1.20.1 modpack crash need help. (1.20.1)
warjort replied to sebita420's topic in Support & Bug Reports
There is no error in that log. But I can see you are using optifine as well. You can't use optifine/rubidium/embedium together. You have to choose one major graphics overhaul mod. If you are just dumping large numbers of random mods in your mods folder don't do that. Add mods individually or in small groups and test them so you know which mods cause problems. -
Please don't dump code snippets in the forum. Post complete reproducable examples to github so we can see everything in context. e.g. you don;t show your item code that triggers all this You shouldn't need to do any custom networking for this unless your processing is none standard. That item "use" method should get called on both the client and server. From the server you can use ServerLevel.sendParticles() See for example PotionItem.useOn() which calls sendParticles when isClientSide is false - there are many other examples in the vanilla code https://forge.gemwire.uk/wiki/Particles#Spawning_Particles To answer exact question: Players are Entitys. Minecraft serializes them over the network using their entityId. But the player is often implicit in the connection. Its only when another player is referenced that these ids get sent.
-
[1.13.2] Any Way to Load a Mod's Config Before Registry Events?
warjort replied to ObliviousSpartan's topic in Modder Support
Please don't hijack other people's threads. Start your own thread. Your question has been asked and answered many times before in these forums, e.g. this is another repeat https://forums.minecraftforge.net/topic/113328-1182-config-field-does-not-work/#comment-503920 -
1.20.1 modpack crash need help. (1.20.1)
warjort replied to sebita420's topic in Support & Bug Reports
Choose one. You can't have both. -
1.12.2 MC. 1.12.2, is there a way for a better log file?
warjort replied to Insterluda's topic in Support & Bug Reports
You are asking about esoteric flags in the java runtime from nearly 10 years ago. You want a java support forum not a minecraft modding forum. -
I know little about BlockBench, but I suspect what you have done is create a model for an optifine only feature? e.g. your model files look very similar to these: https://github.com/moonbutters/ConeyHatPack/tree/main/assets/minecraft/optifine/cit If you don't want to make your item into a helmet which will use the rendering for the builtin armor model and you still want to use those models, then you will have to render the hat yourself using an EntityRenderer layer. See for example vanilla's CustomHeadLayer that renders skulls when players wear them. You use this event to register new layers. https://github.com/MinecraftForge/MinecraftForge/blob/817e20821d04225e2b39e2ce64be9b70c8ddfa27/src/main/java/net/minecraftforge/client/event/EntityRenderersEvent.java#L121 NOTE: For players you add layers to each skin's EntityRenderer because there are different renderers for each skin type. You can also search github to see how other mods do custom hats: https://github.com/search?q=minecraft hat&type=repositories Maybe somebody has already written some code to render those models without using optifine?
-
You are using fabric. These are the Forge support forums. Your crash is in the java virtual machine, so you can report it to them: Or try a different java implementation. Although this is likely caused by memory corruption, e.g. by a buggy graphics driver. See the FAQ at the top of the forum for how to fix that.
-
1.12.2 MC. 1.12.2, is there a way for a better log file?
warjort replied to Insterluda's topic in Support & Bug Reports
Try this: https://www.curseforge.com/minecraft/mc-mods/spark https://spark.lucko.me/docs https://www.curseforge.com/minecraft/mc-mods/spark/files?page=1&pageSize=20&version=1.12.2 Assuming they still support that version? 1.12 is no longer supported in these forums: https://forums.minecraftforge.net/topic/91712-supported-version-directory/ -
1.20.1 I can't join my minecraft server, Please help
warjort replied to Uiro's topic in Support & Bug Reports
That error is usually caused by a mod having either broken network code or custom recipe serializers. It can also be caused by using mods for the wrong version of minecraft or different versions between client and server. Usually the only way to find the problem mod is to expermient with removing mods until the problem goes away. Backup your world before removing mods. -
Since you are using jigsaw blocks, I think you should try the terrain adapation flag. e.g. https://github.com/misode/mcmeta/blob/436f09d61b801d852f35af6bd29382c9deaf446a/data/minecraft/worldgen/structure/pillager_outpost.json#L25
-
java.lang.reflect.invocationtargetexception.null minecraft
warjort replied to Atomass's topic in Support & Bug Reports
That's not the debug.log - Read the faq on how to find it. I would guess you are missing the epicfight mod required by the yamatomoveset from the error message? https://www.curseforge.com/minecraft/mc-mods/epic-fight-yamato-moveset/relations/dependencies If that's not the case, you should check you have the latest versions of those mods then contact the mod authors. Note: 1.18.2 is no longer supported in these forums. https://forums.minecraftforge.net/topic/91712-supported-version-directory/ -
Posting images instead of code will usually just mean you are ignored. I know very little about structures, I would suggest you compare your code to what the vanilla structures do. e.g. IglooPieces.postProcess()