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.

JoieNL

Members
  • Joined

  • Last visited

Everything posted by JoieNL

  1. ~Nevermind this reply~
  2. Well, I am using 1.8.9, I just figured the the topic pertained to the entirety of 1.8. So by configuring the NBT of this WeightedRandomMinecart instance I can apply armour and potion effects to the spawned entity? Alright, but then how about the properties of the spawner itself?
  3. I am using 1.8 mostly because I cannot stand the combat system introduced in 1.9. Either way, I do not plan to update. Right, but it only allows you to pass a String (that is, the mobID), which means you can only set what kind of creature you want it to spawn, not the specifics of both the spawner and the spawned creature.
  4. Hello fellow modders, Lately I found myself at an impasse when trying to generate mob spawners in my custom structure. The generation of the spawner itself is not the problem, but rather the specifics of the spawner and the mob spawned. For the spawner itself, I want to be able to set the initial spawn delay, spawned mob, number of mobs spawned each time, spawn range, minimum and maximum delay between spawns, maximum nearby entities and required player distance to the spawner. For the spawned mob, I would like to add equipment (i.e. a weapon and armour) and maybe give it some potion effects. Now, I know how to do the latter if I have an instance of an EntityLiving, but I cannot figure out how to get said instance (and then set it) for a spawner. Please let me know if what I want is even possible with Minecraft's default classes, and, if it's not, how I would go about making custom spawner classes. Thanks in advance! PS: Here is my code for reference:
  5. First of all, please excuse my recent absence. I've been quite busy lately. What I mean is that you are referencing some other classes and interfaces in your code (most notably IItemWithMeshDefinition and EasyRegistry) in your libraries. I cannot trace the data flow of your code so I can figure out what to do myself without these files (or I'm just being stupid, hell if I know). Well, the title of this thread does say "[1.8]". That is, I'm modding in Minecraft version 1.8...
  6. I've looked around a bit, and I believe IItemPropertyGetter is a 1.9+ interface. Could you point me to the exact location of the interface so I can doublecheck? I notice you are using libraries I do not have. I haven't much experience with using libraries myself, but I'm not sure this helps out. Still, I thank you both for the quick replies.
  7. Lately, I've been stuck trying to give certain 'energy' tools a different texture, depending on whether the player is holding the tool or not. The tools should how up in an 'active' state when held, and in a 'dormant' state otherwise. The code for the switching of states work jut fine, but I cannot figure out how to change the texture depending on the state. Either changing the texture altogether or adding a second layer onto an existing texture works for me. Thanks in advance! Here is all the (potentially) relevant code:

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.