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.

BenGBoo

Members
  • Joined

  • Last visited

  1. Glasstler started following BenGBoo
  2. Awesome, thanks a bunch for the thorough answer, I really appreciate it!
  3. Oh, perfect! And is there any way to disable certain mobs / hostile mobs from spawning in this specific chunk?
  4. Hey all, I'm looking to make a simple mod that disables mobs from spawning in a square around a chunk. I'm new to Java (and therefore Minecraft Modding), so I poked around last night to come up with a simple Event Listener that intercepts new spawns and entity.remove()s the new entity before it can spawn. This seems inefficient because of game mechanics and ongoing spawns, so I was hoping that there was a way to simply disable spawns in a given Chunk. Is this possible? I suppose I'm a bit overwhelmed with the vast amount of classes and methods of Forge's documentation. Anyone have a good recommendation as to where I should start? Or is my code (below) a sufficient place to start? @SubscribeEvent public static void spawnEntity(LivingSpawnEvent event) { LivingEntity entity = event.getEntityLiving(); double deltaX = entity.getPosX() - 50; double deltaY = entity.getPosY() - 4; double deltaZ = entity.getPosZ() - 50; double distance = (Math.sqrt((deltaX * deltaX) + (deltaY * deltaY) + (deltaZ * deltaZ))); if (distance < 100) { entity.remove(); NoSpawn.LOGGER.info("DELETED"); } else { NoSpawn.LOGGER.info(distance); } }
  5. BenGBoo replied to BenGBoo's topic in Modder Support
    Thank you very much! I don't know exactly what capabilities are but that's a great starting point, I'll do some research. Thanks again!
  6. BenGBoo posted a topic in Modder Support
    Hello everyone, this is my first modding attempt and I've gotten down making items, tools, blocks, and crafting recipes. I have a decent grasp on Java as a programming language but I'm still very new and unsure of Minecraft's modding. The mod I want to make relies heavily on a skill sort of system, where repeating an action like chopping down a tree gives you experience towards that skill, and leveling up increases your efficiency at that skill, so chopping just a tiny bit faster or maybe a chance at getting an extra log. I want this to be a feature of every part of the game, like a skill for farming, tree chopping, mining, etc., but I don't know exactly how to accomplish this. I was thinking that advancements would be a great way to track and see progress on these levels, but how would I go about tracking "blocks mined/xp gained", and how would I reward the player with a constant and permanent stat buff? Thank you all very much for your help.

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.