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.

Elemental

Members
  • Joined

  • Last visited

  1. when trying to find through the command, this structure does not exist public ExampleMod() { { IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus(); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::doClientStuff); ModStructures.register(eventBus); ModBlocks.BLOCK.register(eventBus); eventBus.addListener(this::setup); MinecraftForge.EVENT_BUS.register(this); } private void setup(final FMLCommonSetupEvent event) { { event.enqueueWork(() -> { ModStructures.setupStructures(); ModConfiguredFeatures.registerConfiguredStructures(); }); }
  2. the problem is that if(!world.is Client Side) red is Client Side) red
  3. complete nonsense stop copying information from forge's website how should it work in your opinion
  4. more precisely, I need a condition for the method that works on the new version
  5. I need to check the block on the server side but can't find isClientSide
  6. unfortunately I didn 't mix it up I know the basics of java but I don't understand how to apply them
  7. unfortunately I didn 't mix it up
  8. How to fix infinite recursion ?
  9. [12:30:23] [Render thread/FATAL] [ne.mi.co.ForgeMod/]: Preparing crash report with UUID c028e287-13b2-432b-b43b-f1fa91002cd0 [12:30:23] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception java.lang.StackOverflowError: null at net.minecraft.util.palette.PalettedContainer.lockedSwap(PalettedContainer.java:110) ~[forge:?] {re:classloading} at net.minecraft.world.chunk.ChunkSection.setBlockState(ChunkSection.java:60) ~[forge:?] {re:classloading} at net.minecraft.world.chunk.ChunkSection.setBlockState(ChunkSection.java:54) ~[forge:?] {re:classloading} at net.minecraft.world.chunk.Chunk.setBlockState(Chunk.java:253) ~[forge:?] {re:classloading} at net.minecraft.world.World.setBlockState(World.java:228) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.world.World.setBlockState(World.java:205) ~[forge:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.world.World.setBlockState(World.java:315) ~[forge:?] {re:classloading,pl:accesstransformer:B} at com.el_elemental.overlord_mod.materials.Items.SaltyIngot.onItemRightClick(SaltyIngot.java:25) ~[?:?] {re:classloading} at com.el_elemental.overlord_mod.materials.Items.SaltyIngot.onItemRightClick(SaltyIngot.java:27) ~[?:?] {re:classloading} [12:30:23] [Server thread/FATAL] [ne.mi.co.ForgeMod/]: Preparing crash report with UUID 98a088e3-f32c-4397-8a89-d32c0a456ac4
  10. problem exit the game when you try to install the block with the help of an item
  11. package com.el_elemental.overlord_mod.materials.Items; import com.el_elemental.overlord_mod.utils.ModItemGroups; import net.minecraft.block.Blocks; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.ActionResult; import net.minecraft.util.Hand; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD) public class SaltyIngot extends Item { public SaltyIngot() { super(new Properties().group(ModItemGroups.MOD_MATERIALS_TAB)); } @SubscribeEvent public ActionResult<ItemStack> onItemRightClick( World world, PlayerEntity player, Hand hand) { if (!world.isRemote) { world.setBlockState(new BlockPos(1, 1, 1), Blocks.DIAMOND_BLOCK.getDefaultState()); } return this.onItemRightClick(world, player, hand); } }
  12. how can I force a mob that has received damage to attack my player
  13. creating a mob public static AttributeModifierMap.MutableAttribute setCustomAttributes() { return MobEntity.func_233666_p_() .createMutableAttribute(Attributes.ATTACK_SPEED, 12.0D) .createMutableAttribute(Attributes.ARMOR,1.0D) .createMutableAttribute(Attributes.ATTACK_DAMAGE, 20.0) .createMutableAttribute(Attributes.MAX_HEALTH, 10.0D) .createMutableAttribute(Attributes.MOVEMENT_SPEED, 0.250D); it used to work out now it doesn't porsle .func_233666_p_ () the next line is highlighted in red. createMutableAttribute(Attributes.ATTACK_SPEED, 12.0 D) and so on

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.