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.

Wintersky20

Members
  • Joined

  • Last visited

Everything posted by Wintersky20

  1. What mods are you using ?
  2. You have a point , but I want to change the entire tile , for input and output in to the blocks Thanks a lot for the replay ,, but I solve it
  3. Thanks a lot , it's working perfectly
  4. Ok , I'll try it Thanks for the replay I'll let you know if is working
  5. Ok guys .. So , I'm trying to replace a vanilla block in 1.16.4 but no luck! First I created a Workspace like I always do .. I created a block class for my replaced block: public class ExempleBlock extends CactusBlock /*just an ex.*/ { public ExempleBlock() { super(AbstractBlock.Properties.from(Blocks.CACTUS)); } } Then I tried to register it : First method( copied from an old 1.12 mod by rwTema ) @Mod.EventHandler/* not in 1.16*/ public void preinit(FMLPreInitializationEvent event) {/* not in 1.16 , I think*/ Block blockDietHopper = new BlockDietHopper(); ForgeRegistries.BLOCKS.register(blockDietHopper); } Then I tried to do this with a new registry event //from the exemple mod private void setup(final FMLCommonSetupEvent event){ Block ex = new ExempleBlock(); ForgeRegistries.BLOCKS.register(ex); } no luck Then I tried this : @Mod(ExempleMain.MOD_ID) public class ExempleMain { public static final String MOD_ID = "id"; private static final Logger LOGGER = LogManager.getLogger(); public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, "minecraft"); public static final RegistryObject<Block> BETTER_EXEMPLE = BLOCKS.register("exemple_block", () -> new ExempleBlock()); public ExempleMain() { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); bus.addListener(this::setup); ExempleMain.BLOCKS.register(bus); } private void setup(final FMLCommonSetupEvent event){} } No luck The idea is , I want to modify the TileEntity or the TESR for the vanilla blocks (ex: tools hovering on enchanting table , Nethar anchor GUI, Composter GUI, etc) Note: I use IntelliJ and mdk-1.16.4-35.1.37 And Thanks for every topic
  6. If you want something like elytra, look at minecraft client renderer for entity , and you can find there the entity layers for elytra !
  7. Thank you , you are the best ! The solve is just this small piece of code ! bus=Mod.EventBusSubscriber.Bus.FORGE Again , thanks for helping me !
  8. Oh , ok .. It's a good point ! you make that when player is changing dimension instead of spawning in nether , you spawn in the new dimension ! And i think it's clean enough for a mod that do just one thing !
  9. Oh , ok , you are right I miss that piece of code in the BucketItem: if (worldIn.dimension.doesWaterVaporize() && this.containedBlock.isIn(FluidTags.WATER)) But he can add an event like : PlayerInteractEvent.RightClickBlock just for the nether dimension to place a water source and stop the actual water from the bucket to be placed , if i'm correct ! Yeh , you are right , i dont give him the correct classes to look! My bad, sorry !
  10. Actually , I think this is intended .. you cannot have 2 or more blocks with the same registry name and the same id .. @Animefan8888 suggest to But , as I seid , It will crash!
  11. Actuall , if you look above @diesieben07 comment , I sad that in another format! But you need to change water behavior if you wanna keep the water in the nether! If I remember correctly , is not possible to place water in nether ..right ?
  12. In 1.13-1.15 its harder to change vanilla blocks .. without chrashing your game ! Registering blocks with the same name will crash your game Overriding a whole dimension is harder then changing vanilla blocks ! you are right Another idea is to change water behavior using som events ! then try to spawn the water in the same way that lava is spawned using world generator Search the water and lava classes and nether dimension class , for more information !
  13. Go into minecraft lib. and look for ResourceLocation.class ! I dont think it's necesary to make a new resource location , because you can bind your resources to your mod folder using this.setRegistryName(new ResourceLocation(MOD_ID, "item_name"));
  14. Why you want to do that ? NVM Make a new dimension , same as the nether ! The only way !
  15. Glad I can help you ! Have a beautiful day !
  16. Download the new version , and try to install on another disk file like F: , E: etc. Then insert your license , and see if is working! But the problem I think is the outdated version!
  17. Hmm , I don't think it's the same problem ! Try to update your intellij ( and optionally buy an package or get an student pack for it , this way you can have more options and etc., or try the free one , and see if is working) I'm using intellij ultimate ( little bit over-price, but is better then eclipse)
  18. I think this is a bug from the Gradle Editor ! I mean , in 1.12 , I don't encounter this type of problems because was no need for an internal plugin like gradle editor Then , 1.13 come out , and starts to get wanki!
  19. This is a good fix , auto-running a python file to copy the file from a location to another ! You give me an idea for the future if i want to use eclipse and still has this bug ! Right now , intellij ultimate is enough for me ! By the way , updating eclipse and gradle editor dos not solve the problem, I just tried!
  20. Actually I was trying this , and did no work for me ! The only permanent solution that I found , as I said previously is to switch eclipse with intellij .. Or , an solution that I don't tryed is to update the eclipse and gradle editor , but i dont think this solves the problem! And @DavidM, thanks for reminding me to update my eclipse and intellij , you rock !
  21. I'm glad I was able to help you Have a wonderful day too!
  22. The bin folder its like your "run mod folder" but separatly ! I have a temporary solution for you: try to copy your src resources folders in your bin.main folder I wash having the same problem , and the only permanent solution that I can tell you about is to switch eclipse with intellij, because you have to copy your resources to that bin folder evry time you add something new ! Hope that helps you!
  23. Ok .. If you are using eclipse , go on your project folder and search for "bin": Now check if you have any resources in your bin folder , like blockstates , models, textures(.json or .png files) ..
  24. First , what program do you use , intellij or eclipse ide?
  25. Hmm.. What do you mean ? This is the event bus subscriber from the exemple mod !(or did you say that should I put mai mod id in the event bus like this "@Mod.EventBusSubscriber(modid = Main.MODID, bus=Mod.EventBusSubscriber.Bus.MOD)") And I think the "MinecraftForge.EVENT_BUS.register(new MaterialWoodBreaking());" or "MinecraftForge.EVENT_BUS.register(MaterialWoodBreaking.class);"do the same thing! I think the problem it's in the code ... I was trying to get the players hand insted of player held item . but no luck ..!

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.