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.

matezz

Members
  • Joined

  • Last visited

Everything posted by matezz

  1. So instead of doing for each block new blockstate & model as another file in assets, i want to make it in code.
  2. Hey, got better and easier idea but i need help. How can i put json string as new blockstate and model? public static void register(){ Registry.BLOCK.forEach(block -> { if(block.getDefaultState().isSolid()){ ResourceLocation r = new ResourceLocation("wildnature:"+block.getRegistryName().getNamespace()+"_beams"); } }); } ResourceLocation r is a registry name for new block. Then i need to put like that new blockstate for that with changed data for each block, and model. Where and how can i register them?
  3. so how can i edit these models to set proper texture on it
  4. so how can i change tileEntity texture? I have that block: and i want that after someone will click on it with any block it will get its texture. Like if stone block click, it will get stone texture. So it have to get the stone texture and set "#texture" in that model to it.
  5. Hello I want to create block, that after clicking on it with another block (anything, not only one block set), it will bind its texture. Is that possible, and how can i do this if it is?
  6. Hi there I want to add new accesstransformer to private final TrackingChunkStatusListener field_213040_a; and after doing it in accesstransformer.cfg, my gradle dies and gives me errors that makes no sense or just says that forge is not resolved. As you can see, private final changed to public, but i cannot run it My access transformer: its the last one. Other entries works. Thanks for help
  7. It is possible to add block to animal spawn allowed?
  8. Hello In my mod i have five new grass blocks, and new biomes with them not contains any animal (monsters are spawning) Any idea where I can solve this? Yes, my grass block is an instance of minecraft GrassBlock Yes, in my biomes there is "addSpawn" code Example
  9. This makes no sense but works. Thanks !
  10. So i met the bug in a pretty simple code, and I completely don't know why it appears. https://youtu.be/9o534kIYxUc I want to create Gift item, that after putting it with another item in crafting, it makes it enchanted. And then after right clicking it, it turns into certain item. BUT Weird things are doing here. Item disappears or gives result WITHOUT crafting it (just putting and collecting it from crafting table menu). My code GiftCrafting - special recipe
  11. Hi there I don't know that is a bug or not, but in my mod i want to change default minecraft panorama on main screen. I was doing this on 1.12.2 version and it worked perfectly, but now, custom minecraft textures aren't defaultly overriding minecraft ones. As you can see, Mod Resources has lower priority than default, so panorama isn't changed. After moving it upper, it is. Is there any method to make it default or not? Thanks
  12. Hey there I have a problem with generating trees with branches. Branch block has 6 states - for all directions (true/false). Tree is growing from added "schematic" file, and also rotating. And when it rotates, branch blocks don't know that and they stay connected for example to air. That shouldn't happen. So, is there any option to notify the neightbours when the block is placing? Using IWorld. Branch block - when notified "Schematic" file: SchemFeature class(when tree growing) Block() method (placing blocks) world.setBlockState flags seems not working Please help!
  13. But is there any another method to use custom world type on servers?
  14. Hello I've been trying to use my custom world type on server. This is it: public static WorldType WNWorldType = new WNWorldType("something");; And after running my mod on a server and typing level-type=something in server.properties, and reloading server, it resets to default. Also I've been thinking about the solution and found this: @SubscribeEvent public void dedicatedServerStarting(FMLDedicatedServerSetupEvent event) { ServerProperties serverProperties = event.getServerSupplier().get().getServerProperties(); if (ConfigApplier.runWorldOnServer.get()) { LOGGER.info(String.format("Using WildNature Server World Generator %s", serverProperties.worldType.getName())); serverProperties.serverProperties.setProperty("level-type", "wildnature");//serverProperties is private serverProperties.worldType = WNWorldType;//worldType is final } else { LOGGER.info("Using normal world generator"); } } This could work, but the code is invalid(see //) Thanks
  15. Hello I want to create block, that after placing on another(solid) block, will get its texture. So for example placing stalagmite on the stone, it will get the stone texture and replace the current. I'm doing plenty of new rocks so I need this to not make a different stalagmites for each rock. Thanks for help
  16. Hello! I want to make my overworld much better - sea level at y111 and world barrier at y512. But with this last its a problem - there is no setting to change it from 256. Can someone help? Thanks
  17. YES! Its possible!! You need to create custom feature and then register it in your biome. Or if you want in mc biome, make Registry.BIOME.forEach(event ->{ this.addStructure(Feature.STRONGHOLD, IFeatureConfig.NO_FEATURE_CONFIG); });
  18. Aha now worked! Thanks
  19. I'm using 28.1.0 in IDE and in mc
  20. Hello there, After adding some particles to my mod, it worked well, just in IDE. After building it and launching, an exception has thrown. Here is my code: I don't know is that a forge bug or just I have done a mistake. Thanks for help
  21. Hello, I need to create my own particle, so I've checked how Minecraft does it and maked same. But it now works as well, shows only "unknown particle" texture. Please, help!
  22. You can change fog color @SideOnly(Side.CLIENT) @SubscribeEvent public void onFogColorRender(EntityViewRenderEvent.FogColors event){ if(true) { event.setRed(200); event.setGreen(10); event.setBlue(10); } } And register it as normal event
  23. Hello, I want to register new command. All is made, should work properly, but I don't know how/where register it... Thanks!

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.