Everything posted by Luis_ST
-
[1.18.1] Problem with stair texture
you need a custom Stair Model Blocks.GLASS::defaultBlockState
-
How to change isImmuneToFire from custom item tool? 1.16.5
yes
-
How would I auto smelt items when broken by a specific pickaxe?
https://github.com/MinecraftForge/MinecraftForge/blob/72598871762a98c566689acddec539fa369ed86c/src/test/java/net/minecraftforge/debug/gameplay/loot/GlobalLootModifiersTest.java#L152-L164
-
How to make an aggressive mob passive
you need to remove the TargetGoals, basicly you need to extends the CaveSpider and overwrite registerGoals in your Entity class
-
How to run Minecraft Forge with Optifine?
when you download Optifine and run the installer you need to click on 'extract', it will create a jar file which you can put into your mods folder
-
Client-only command registration [1.16.5]
the vanilla commands are server-side, if you want to create custom client commands you need to implement them for your own via ClientChatEvent look into vanilla another option would be to update to 1.18.1 since there is at the moment a PR to Forge, about client-side commands
-
Mods not showing up in 1.18.1!!
post debug log
-
Decompile java classes without field_ and func_
in your IDE yes, take a look at the Dependencies of your project, you will find the minecraft scource code in the forge-<forge_version>_<mappings_type>_<minecraft_version>.jar, in the package net.minecraft unfortunately i can't tell, where you find the Dependencies exactly in your Project since i'm not familiar with Intellij (i use Eclipse)
-
[1.16.5] Crafting without JSON Files
the code you show creates recipes via Data Generator, the code you show should create the recipes if: you replace the mod id in the args of the data run config for the output of the Generator in the build.gradle file with your mod id you run the data task did you do these two things? -> if yes post log -> if not try it
-
Decompile java classes without field_ and func_
again the IDE contains the readable source code of vanilla which version did you use?
-
Decompile java classes without field_ and func_
you find the source code of vanilla inside your IDE, in the dependencies of your project
-
Decompile java classes without field_ and func_
why, what's the reason for?
-
[1.18.1] How to add Structure ?
with mixin/core modding yes, else no mixin/core modding is not supported on this Forum, there are some use cases where you need mixin. but this case is possible without mixin, so you don't ge support. if you have a other use case for that you can ask on the Forge discord in the non-api-modding chanel, but only if this a true case
-
Kill a entity from code
use Level#getEntitiesOfClass to get all Entities of the Type you want to run this action, then loop through the list you get, and check if the name of the Entity equals your String (you can get the name from the Entity via Entity#getName then Component#getString), do this in Item#use inside your Item class
-
(1.16.5) Create a textfield
you can take a look at the AnvilScreen, but basically you need a TextFieldWidget
-
[1.18.1] How to add Structure ?
Java Reflection: https://www.baeldung.com/java-reflection Access Transformer: https://forge.gemwire.uk/wiki/Access_Transformers AT: public-f net.minecraft.world.level.levelgen.StructureSettings f_189361_ # configuredStructures
-
[1.18.1] How to add Structure ?
you need to add your custom Structures to the StructureSettings.configuredStructures in FMLCommonSetupEvent, this requires an AT or you need to use Reflection, since it's a ImmutableMap and you need to replace the Map with a new ImmutableMap. Note: you need to copy the old Map into the new Map, if you don't do that, the vanilla structures won't be generated
-
[1.16.4] Server crashes on boot
delete this server config file
-
Unrecognized option: -Xincgc
first Eclipse itself needs java 11 to run, second this Thread is 4 years old third if you have the same problem create your own thread and post more details
-
Quick question: how to make an item be consumed on right click?
overwrite finishUsingItem in your Item class, if you want to return an Item like the Vanilla Soups return the Item you want
-
[1.18.1] Questions about blocks
in 1.18 it's BlockPos#betweenClosedStream you need a BlockEntity, since this kind of logic can not be done in the Block
-
Forge server crash, likely from libraries
Error in Camouflaged Creepers, make sure you use the latest version of the Mod, if you already use the latest version, report the bug to the Mod author.
-
Where is "RegistryObject" in 1.18 mc forge versions?(namely, 1.18.1 forge, java 17)
it was moved into net.minecraftforge.registries.RegistryObject and for next time use your IDE to search for the class
-
Custom Villager Profession named entity.minecraft.villager.sorcery.sorcerer instead of "Sorcerer"
entity.minecraft.villager.sorcery.socerer != entity.minecraft.villager.sorcery.sorcerer you forgot an 'r'
- Crash
IPS spam blocked by CleanTalk.