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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. If it's all AI, no, you don't need to do anything for the client. As for the capability, use GetCapability(...) on the entity in question.
  2. That's what the ObjectHolder annotation is for!
  3. Uh. You're not using them correctly. http://mcforge.readthedocs.io/en/latest/concepts/registries/#injecting-registry-values-into-fields public static final Block diamond_block = null; // public static final is required. // Type Block means that the Block registry will be queried. // diamond_block is the field name, and as the field is not annotated it is taken to be the resource path. // As there is no explicit domain, "minecraft" is inherited from the class. // Object to be injected: "minecraft:diamond_block" from the Block registry. Notice how the field is null. Notice how the field is of type Block. Notice how the field name equals the registry name.
  4. The...world...? All entities have a reference to it.
  5. Whut. How about applying a Capability to the animals that stores the last world-time they were harvested? The butchers would then query that, do a calculation to see if that value is more than 24000 ticks ago, and then perform an action based on the result.
  6. Write your idea down. Go back to the basics. Step 0: learn Java Step 1: make some basic blocks that look pretty
  7. You have no idea what you're doing, do you?
  8. What have you tried?
  9. Your code currently gets the entity's name, throws it away (does nothing with the variable), and then kills the entity. 99% sure that has nothing to do with spawning entities. Please explain further.
  10. I don't know how to stop pressure plates from activating. It's a collision thing.
  11. By the way, you don't need the display tag. Those are already specified in the item handheld model. You only need it if you want to override the values.
  12. Probably. The names have changed a bit.
  13. Relevant log line: [22:11:53] [main/WARN] [FML/]: Registered override did not have an associated owner object. Name: rtm:ruby_pickaxe Type: net.minecraft.item.Item Value: jouri.RandomThingsMod.Init.Tools.CustomPickaxe@2f667f80
  14. I got that part. But you're sending a message to the server from onBlockActivated. This has nothing to do with that. Generally speaking, any method that isn't marked @SideOnly is called on both sides. I've run into a handful of cases where that's not been 100% true, but it's a good baseline. OnBlockAddedToWorld GetStateForPlacement
  15. I have no idea what you're trying to do with that code. onBlockActivated is already called by both sides.
  16. You only need mobs to tick faster. The "everything else" in the game can be ignored. You can just call a mob's EntityLivingUpdate method as much as you want.
  17. That tutorial is fucking stupid. Recipes (crafting, smelting, brewing, etc) need to be known by the server in order to function.
  18. ModelLoader is a client-side class, any references to it must be in your client proxy.
  19. 1) Why is this in "client"? https://github.com/ChellieH/BigDoors/blob/master/src/main/java/chelliesmods/tutorial/handlers/RegistryHandler.java#L15 2) Why is this in "common"? https://github.com/ChellieH/BigDoors/blob/master/src/main/java/chelliesmods/tutorial/handlers/RegistryHandler.java#L25-L26
  20. On the client: make both values false On the server: make them random When the server sends the update packet to the client (which would happen immediately) the client will become aware of the correct state.
  21. The client and server disagree about what blockstate was placed. Also: https://github.com/Thegamerchunk1/x3d/blob/master/src/main/java/x3d/blocks/chromosoneblock.java#L82-L90 Seriously? A for-each loop where you manually track an index? Use a regular for-loop. I mean, hell, having to do this should have clued you in.
  22. There will be errors in the log. Post those. Also your mod ID needs to be all lower case.

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.