Everything posted by Draco18s
-
[1.12.2] Game not recognizing the name of an item block for a recipe
1) Code is text (as are errors) so post them as text not images 2) Post your code
-
[1.15.1] Why minecraft forge does not have a json api?
Because no one wrote it. Welcome to open source development. All the json data files are already detailed on the official wiki, why would Forge have to do it again?
-
How i check when a player destroy a block?
Update.
-
1.14.4 Interacting with chests from Client
Note: mods do not use ContainerBlock, so do not count on that when interacting with arbitrary block inventories.
-
[1.15.1]Custom BiomeProviderType
It doesn't have a constructor because the class is abstract (well, it has an implicit, empty, public constructor that you can't invoke). You need to either extend it or call new on the existing subclasses (all of which have public constructors).
-
1.14.4 Interacting with chests from Client
Chest contents aren't sent to the player unless the chest is opened. Otherwise, yes, you can do that.
-
The attribute modid is undefined for annotation type Mod
Yeah, in the development environment. You click run in Eclipse or IntelliJ and it does. Cadiboo's tutorial doesn't explain how to export because that's covered here: https://mcforge.readthedocs.io/en/1.14.x/gettingstarted/#building-and-testing-your-mod
-
[1-14-newer] make block with specific shape
https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/block/SifterBlock.java#L29-L32 There's like a million of these threads, I swear I see a new one asking the same problem ("I can see through the world!") every week.
-
[SOLVED] [1.15.1] Confused why entityDropItem fire multiple time
isAlive is going to return false if the mob's health is zero...
-
[SOLVED] [1.15.1] Confused why entityDropItem fire multiple time
1) Your "these mobs are excluded" block is irrelevant. You only care about players and zombies, which you have blocks for. Any entity that is not those things does nothing already, there's no reason to grab everything else (you're not grabbing mod added entities for instance!) and skipping them is pointless. 2) ZombiePigman extends Zombie, so that check is extraneous as well. 3) You're setting mob's health to zero, but the entity is not immediately made dead and removed for at least the next tick, but you aren't checking to make sure that the mob is still alive before doing your thing. 4) TranslationTextComponent (and applyTextStyle(...)) exists. Use it.
-
Any good structure tutorials for 1.14.4
"Structures" are what they say they are. They are features that use the Structure class and place blocks for things like village houses, mineshafts, shipwrecks, and other structures. I've looked into the code and barely understand it. You can see some of my fooling around (I've been working on trying to get Custom Ore Gen on 1.14, so my code is oriented in that direction) here: https://github.com/Draco18s/ReasonableRealism/tree/1.14.4/src/main/java/com/draco18s/harderores/world
-
[1.14.4] Pass Texture from Blockstate JSON
You've specified the forge marker and then you didn't use Forge variants. And instead specified all 40 variants manually. Forge would have let you write 11. Anyway: This error says that there is a texture specified as a reference (ie. "#side", starting with a #) and that texture reference hasn't gotten a definitive resource location. The model with that issue is minecraft:block/inner_stairs. The code you have posted does not include a reference to this model (or the other models generating an error).
-
[1.14.4] My Kingdom for a World
What D7 means is that an IBlockReader is not necessarily also an IWorldReader. If the object you get is only one and not the other, just assume that neighboring blocks are loaded.
-
[1.14.4] Unlock Recipe on Recipes Book
*Shrug* I included it in my advancements because vanilla included it.
-
[1.14.4] Can't figure out to add entry to already existing lootpool
That gets tricky. The only thing I can suggest is doing what I did back in 1.12: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/util/LootUtils.java I have not updated this class and it does some reflection magic to get access to things, but it will let you directly modify loot pools. Or at least, give you the information necessary to write such a hook.
-
Updated documentation or exhaustive tutorials for 1.14.4 ?
Weird, it redirects to https://mcforge.readthedocs.io/en/1.13.x/ for me
-
Updated documentation or exhaustive tutorials for 1.14.4 ?
Going to: https://mcforge.readthedocs.io/en/ Still leads to 1.12/1.13 (one would expect that regardless of what language you were in, it would take you to the current version) and 1.14/1.15 do not appear in the dropdown. https://mcforge.readthedocs.io/ works as expected though.
-
[1.15.1] Rendering block 'manually' (clientside)
Because you're waiting for RenderWorldLastEvent. As indicated by its name, it's last.
-
Non loaded world change simulation - best method
Or: don't worry about it. Players have a general acceptance that when chunks are unloaded, nothing happens there. As an example, lets say that your players make a server and zero players are online for a period of 8 hours. How much ash should build up?
-
[1.15.1] How to make a Block with a GUI (like a furnace)?
We aren't stopping you. Its not illegal. It just might not be wholly accurate.
-
[1.15.1] Rendering block 'manually' (clientside)
pop already resets translation. That's the whole point of the pop (push/pop "the matrix" which refers to the transformation matrix, which covers translation, scale, and rotation as well as projection (roughly, the field of view)).
-
[1.15.1] Need Help Duplicating Item Drops From Blocks
(And its not ready yet.)
-
Can't get enchantment to work (1.12.2)
1.12 is no longer supported.
-
ItemSword import cannot be resolved.
If you spent 15 seconds looking at the net.minecraft.items package you'd notice that all the classes are FooItem, not ItemFoo. that is You want SwordItem not ItemSword.
-
[1.15.1] How to make a custom entity?
(Similarly some things may only exist in the dedicated server distribution, but is going to be a much, much shorter list that is largely irrelevant for modding).
IPS spam blocked by CleanTalk.