Everything posted by Draco18s
-
[1.10.2] How to feed/breed animals
All "feeding" the animal does is call setInLove()
-
[1.12] Help with Renderer
Post your block class.
-
Advanced Crafting [1.8]
Both of these are possible through the use of Container Items. Look at the milk bucket.
-
[1.10.2] Capabilities unsynced when opening Creative inventory
> Tomlabete: post code
-
[1.12.1] Registering a shaped recipe crashes on world load
Sure @LexManos, here's one. It's not recipes, its advancements, but still, it's something JSON cannot do currently (requires reflection hacking to register new ICriterionTriggers):
-
[1.10.2] Problems picking up carrots
Your post made no sense. None.
-
[1.10.2] Problems picking up carrots
You do know about getEntitiesWithinAABB(EntityItem.class, AABB) don't you?
-
[1.10] How does NBT Data work with ItemStacks
Why the fuck are you comparing unlocalized name strings? Jesus christ, itemStackIn.getItem() == MainMod.SyringeEmpty You do know what ActionResult<ItemStack> means, yes? It means that the item stack that is a part of the ActionResult return is the item that gets put into the player's active inventory slot... As for your asked question, you're doing something really, seriously wrong. I need to see more code, probably your BasicItem class and both syringes in completion.
-
[1.10.2] Help with custom "crop"
Do what crops do. Random update ticks.
-
[1.12.1] Triggering advancements via code?
You can create your own triggers: https://github.com/Draco18s/ReasonableRealism/tree/1.12.1/src/main/java/com/draco18s/hardlib/api/advancement You still need to register them: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/HardLib.java#L46 But it will take reflection: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/EasyRegistry.java#L210
-
[1.12.1] Multiple recipe questions: Recipe Book tabs, unlocking recipes, and replacing vanilla recipes
Must only be removed recipes then (e.g. I removed 3 wheat for bread and replaced it with 3 flour for bread, wheat requiring to be milled into flour). Still a warning worth giving. Pretty much. Any object given a domain other than the domain being processed will log that warning. The substitution system has always done this.
-
[1.12.1] Multiple recipe questions: Recipe Book tabs, unlocking recipes, and replacing vanilla recipes
1) Don't know, probably 2) Yes, but that just means it isn't shown in the recipe book unless game settings are changed to make unknown recipes uncraftable 3) Don't know 4) They should be convertible, even if you have to write custom conditions for them. I haven't really messed with it at all 5) Relevant, but if you remove / replace recipes you need to provide a new advancement to unlock them and the original advancement cannot be killed and will throw an error when it is deserialized. This error cannot be prevented, as it happens during the deserialization process.
-
[1.12.1] How would I prevent 'cascading worldgen lag' during worldgen
See:
-
[1.12.1] Multiple recipe questions: Recipe Book tabs, unlocking recipes, and replacing vanilla recipes
No. You have to live with it.
-
[1.12.1] @ObjectHolder versus IForgeRegistry.getValue()
Ah, thanks for that @LexManos
-
[1.10.2] Model Item loose textures when picked up
Ok, so your wands need the values, which I'd even said: But the rest of your items don't. You also don't need to supply "ground" (etc.) overrides if they're the same, you can just omit them.
-
[1.10.2] Model Item loose textures when picked up
item/handheld
-
[1.10.2] Model Item loose textures when picked up
Read point #2: Use item/generated not builtin/generated. Look at this. LOOK AT IT. LOOK AT HOW GLORIOUSLY SIMPLE IT IS.
-
[1.12.1] @ObjectHolder versus IForgeRegistry.getValue()
OH FOR FUCK'S SAKE DO NOT USE getUnlocalizedName() HERE. THIS IS WHY WE HAVE REGISTRY NAMES AND getRegistryName()! Not to mention that in 1.12, GameRegistry.register(...) is private (use the RegistryEvent.Register<Item> event) and GameRegistry.registerItem() has been removed as it was deprecated back in 1.10.2 in favor of GameRegistry.register(...)! Also, I see no point in using ObjectHolder for your own items. None what so ever. You're already creating them, just stuff them into the static field yourself. ObjectHolder exists to get other mod's items without needing some kind of API or using getValue().
-
[1.12.1] Redstone Flux or Forge Energy?
Forge Energy requires that you do a lot of stuff yourself, but it is essentially the same as Redstone Flux (IIRC, FE was inspired by RF). TL;DR: switch to Forge Energy.
-
[1.10.2] Model Item loose textures when picked up
You don't need all of these: https://github.com/dustpuppy/wizardmod/blob/master/src/main/resources/assets/thewizardmod/models/item/magic_extractor.json#L4 For any model unless you want the model to be different than the default values present in item/generated. Similarly... https://github.com/dustpuppy/wizardmod/blob/master/src/main/resources/assets/thewizardmod/models/item/iron_wand_0.json#L2 Use item/generated not builtin/generated. Third: Post your log. If models don't load, there's always an error.
-
[1.12.1] @ObjectHolder versus IForgeRegistry.getValue()
Sure. Which is why I recommended it.
-
[1.12.1] @ObjectHolder versus IForgeRegistry.getValue()
No one said "every time" Lex:
-
[1.10.2] Help with custom "crop"
The "click and reset growth" is usually done via right click not left. As for how to handle that, there's a player interaction method in the block class for the block being right clicked. Check for pickaxe, set the growth age back to 0 (or 1 or whatever), drop a shard, and damage the pick (if you want).
-
[1.12.1] @ObjectHolder versus IForgeRegistry.getValue()
Lookup performance wise, ObjectHolder is probably faster. After that, it's going to be the same. Personally I'd recommend ObjectHolder.
IPS spam blocked by CleanTalk.