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.

ZainJx

Members
  • Joined

  • Last visited

  1. In 1.16 it was... this doesn't make sense
  2. Seems like the more the density variable is, the less fog density really is in game
  3. It should be so, but look:
  4. I'm trying to just do what I did in 1.16 with fog: @SubscribeEvent(priority = EventPriority.NORMAL, receiveCanceled = true) public static void onFogDensityEvent(EntityViewRenderEvent.FogDensity event) { event.setDensity(densityFloat); event.setCanceled(true); } @SubscribeEvent(priority = EventPriority.NORMAL, receiveCanceled = true) public static void onFogColorsEvent(EntityViewRenderEvent.FogColors event) { event.setRed(0); event.setGreen(0); event.setBlue(0); } with the densityFloat variable that changes, and it worked perfectly. Now I did the same (copy-paste) and with densityFloat set to 0 I have a dense fog anyway, changing the value of densityFloat the fog remains the same
  5. It doesn't work for me, can you tell me what you did?
  6. You have to add .defaultBlockState and COPY the block. Here an example: public static final RegistryObject<Block> CUSTOM_STAIRS = BLOCKS.register("custom_stairs", () -> new StairBlock(CUSTOM_PLANKS.get().defaultBlockState(), BlockBehaviour.Properties.copy(MANGROVE_PLANKS.get()).strength(0.3F, 0.3F)) );
  7. [Render thread/ERROR]: There are unidentified mappings in this world - we are going to attempt to process anyway
  8. I created my custom Block and I simply want it drops itself, so I just created the Loot Table but it doesn't work. Here's the Registry code: public class RegistryHandler { // create DeferredRegister object public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MossyDeepslate.MOD_ID); public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MossyDeepslate.MOD_ID); public static final RegistryObject<Block> MOSSY_DEEPSLATE = BLOCKS.register("mossy_deepslate", () -> new Block(BlockBehaviour.Properties.of(Material.STONE, MaterialColor.DEEPSLATE).requiresCorrectToolForDrops().strength(0.3F, 0.3f).sound(SoundType.DEEPSLATE))); public static final RegistryObject<Item> MOSSY_DEEPSLATE_ITEM = ITEMS.register("mossy_deepslate", () -> new BlockItem(MOSSY_DEEPSLATE.get(), new Item.Properties().tab(CreativeModeTab.TAB_BUILDING_BLOCKS)) ); public static void init() { // attach DeferredRegister to the event bus BLOCKS.register(FMLJavaModLoadingContext.get().getModEventBus()); ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus()); } } The loot table json file: { "type": "minecraft:block", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "mossy_deepslate:mossy_deepslate" } ] } ] } The folder: I think all should work, but... Please Help me I can't release my mod if my block doesn't drop itself...
  9. ZainJx joined the community
  10. I have the same issue, all is correct but it doesn't work, how to solve?

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.