Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Luis_ST

Members
  • Joined

  • Last visited

Everything posted by Luis_ST

  1. you need a custom Stair Model Blocks.GLASS::defaultBlockState
  2. https://github.com/MinecraftForge/MinecraftForge/blob/72598871762a98c566689acddec539fa369ed86c/src/test/java/net/minecraftforge/debug/gameplay/loot/GlobalLootModifiersTest.java#L152-L164
  3. you need to remove the TargetGoals, basicly you need to extends the CaveSpider and overwrite registerGoals in your Entity class
  4. 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
  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
  6. 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)
  7. 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
  8. again the IDE contains the readable source code of vanilla which version did you use?
  9. you find the source code of vanilla inside your IDE, in the dependencies of your project
  10. why, what's the reason for?
  11. 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
  12. 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
  13. you can take a look at the AnvilScreen, but basically you need a TextFieldWidget
  14. 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
  15. 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
  16. delete this server config file
  17. 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
  18. overwrite finishUsingItem in your Item class, if you want to return an Item like the Vanilla Soups return the Item you want
  19. in 1.18 it's BlockPos#betweenClosedStream you need a BlockEntity, since this kind of logic can not be done in the Block
  20. 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.
  21. it was moved into net.minecraftforge.registries.RegistryObject and for next time use your IDE to search for the class
  22. entity.minecraft.villager.sorcery.socerer != entity.minecraft.villager.sorcery.sorcerer you forgot an 'r'
  23. post debug log

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.