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.

FantaLaTone

Members
  • Joined

  • Last visited

  1. I did a lot of changes. Now all I need to do sync the HashMap data from server to client. I am using menus now. How I can sync the hashmap?
  2. Alright, so should I write the writeMap() method again under the first one?
  3. https://gist.github.com/fantalatone/65116264037b83955a99c8c014d328ef this is my current server to client packet's code and this is the error i am getting https://gist.github.com/fantalatone/6dc0501034cde16c21873f22e9aa6a2b
  4. I tried sending the OpenScreen packet from a custom command but it didn't worked
  5. I have a capability called NPCTrades and a screen class called NPCScreen. This is the current packet I am using to handle opening screen: https://gist.github.com/fantalatone/65116264037b83955a99c8c014d328ef But with this packet I can't set the hashmap in the constructor method of NPCScreen class (https://gist.github.com/fantalatone/8d309e1c6bcc86a2f5ba92c707a78f4e) How I can send capability data to a screen class?
  6. I want to make replace all the blocks that is not center of chunk with air. For ex. all the blocks in a chunk will be replaced by air except blocks that chunk position is [0 <y> 0] I used Mixins for WorldGenRegion class and i successfully did what i want to do with structures and features. But I want to replace all blocks not just structure and feature blocks. How I can do that? Which class should I modify to achieve this?
  7. i created an entity that implements PlayerRideable. currently when a player is riding the entity, entity do not climb blocks like horses do while you ride them. i looked all rideable entities' codes but i couldn't figured it out. can you help me? current codes here : https://gist.github.com/fantalatone/d9f44a948208ec954d2bfbdad1092acf
  8. I made it using initializing an entity in every tick. It worked for me.
  9. I have mod in 1.18. I want to write a log file every X seconds. How I can do that? I looked ITickHandler but I think it's not exist in 1.18.
  10. I have a block entity and a block entity renderer class. I want to render an entity inside block and I am kinda able to do that. When I first placed the block everything works fine. But when I save & load back the world entity is gone. How I can save the entity on server-side or render entity without spawning it. I need some answers how I can do that? Block Entity Class Base Block Class Renderer Class
  11. I am working on a mod that adds loot crates and I want to make every loot crate is different per world. Like: world1 - Loot Data -> Diamond Shovel world2 - Loot Data -> Diamond Helmet How I can achieve this? Any advice?
  12. I am a idiot. I noticed the problem finally. EntityRenderers.register(ModEntityTypes.WANDERING_RAIDER, EntityWanderingRaider::new); it should be this instead EntityRenderers.register(ModEntityTypes.WANDERING_RAIDER.get(), RendererWanderingRaider::new); I hate myself
  13. Hi! I have a mod entity class, model, renderer. I got error about types are not match. I am trying to fix it for the last 2 hours. Please help me. MainModFile.java (I get where it says ModEntityTypes.WANDERING_RAIDER.get(). It says "reason: Incompatible parameter types in method reference expression" ) private void clientSetup(final FMLClientSetupEvent event) { ItemBlockRenderTypes.setRenderLayer(ModBlocks.GOLDEN_OAK_LEAVES.get(), RenderType.cutout()); ItemBlockRenderTypes.setRenderLayer(ModBlocks.GOLDEN_OAK_SAPLING.get(), RenderType.cutout()); EntityRenderers.register(ModEntityTypes.WANDERING_RAIDER.get(), EntityWanderingRaider::new); } Entity Class https://pastebin.com/ktaFry3Q Mod Entity Types public static final DeferredRegister<EntityType<?>> ENTITY_TYPES = DeferredRegister.create(ForgeRegistries.ENTITIES, BetterMinecraftMod.MODID); public static final RegistryObject<EntityType<EntityWanderingRaider>> WANDERING_RAIDER = ENTITY_TYPES.register( "wandering_raider", () -> EntityType.Builder.of(EntityWanderingRaider::new, MobCategory.MONSTER) .sized(0.6f, 1.95f) .clientTrackingRange(10).build(new ResourceLocation(BetterMinecraftMod.MODID, "wandering_raider").toString()) ); public static void register(IEventBus bus) { ENTITY_TYPES.register(bus); }

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.