Everything posted by Draco18s
-
[1.15.2] Changing texture of vanilla blocks on event
I don't think so.
-
[solved] Can i replace textures in a blockstate-json-file?
Yes there is. https://minecraft.gamepedia.com/Block_states
-
[solved] Can i replace textures in a blockstate-json-file?
Yeah, because Forge blockstates don't exist any more. They're not needed because the vanilla system is smarter now.
-
[1.15.2] LootEntryTable and LootTableList not importing
Sigh. There's even DOCS on this stuff. /** * A base implementation of a Global Loot Modifier for modders to extend. * Takes care of ILootCondition matching and comes with a base serializer * implementation that takes care of Forge registry things. */ public abstract class LootModifier implements IGlobalLootModifier { A base implementation of a Global Loot Modifier for modders to extend. https://github.com/MinecraftForge/MinecraftForge/blob/1.15.x/src/main/java/net/minecraftforge/common/loot/LootModifier.java#L32-L37 /** * Abstract base deserializer for LootModifiers. Takes care of Forge registry things.<br/> * Modders should extend this class to return their modifier and implement the abstract * <code>read</code> method to deserialize from json. * @param <T> the Type to deserialize */ public abstract class GlobalLootModifierSerializer<T extends IGlobalLootModifier> implements IForgeRegistryEntry<GlobalLootModifierSerializer<?>> { Modders should extend this class to return their modifier and implement the abstract read method https://github.com/MinecraftForge/MinecraftForge/blob/1.15.x/src/main/java/net/minecraftforge/common/loot/GlobalLootModifierSerializer.java#L29-L35 Oh, and three existing implementations: https://github.com/MinecraftForge/MinecraftForge/blob/1.15.x/src/test/java/net/minecraftforge/debug/gameplay/loot/GlobalLootModifiersTest.java
-
[1.15.2] LootEntryTable and LootTableList not importing
Either works. Technically the s is possessive and the number is just a uniquifier.
-
[1.15.2] LootEntryTable and LootTableList not importing
Its a data file, like all other data files, you want to override it, then you have to supply an override at the correct location. That's the path, create it in your /src directory like any other resource.
-
[solved] Can i replace textures in a blockstate-json-file?
Why are you using someone's ripped mirror of the docs? https://mcforge.readthedocs.io/en/1.15.x/
-
[1.15] Bug in thread
Also, there's little reason to call this.GetCapability, because all it does it return this.costStorage which you already had access to. And because it's wrapped in a lazy optional, you then have to call .orElse(), .orElseThrow(), or .ifPresent() on it (rather than accessing the data directly), but all your implementation does is call this.getStorage() in one way or another. And all that does is call new CostStorage(). Meaning you haven't actually STORED any data anywhere. You keep dropping it on the floor and forgetting about it and the roomba comes along and garbage collects it. Compare to this: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/entity/AxelTileEntity.java#L28 and https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/entity/AxelTileEntity.java#L45
-
BREAKDOWN BREAKDOWN
Caused by: net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: .DS_Store:sounds.json You will have to fix this. You're on a mac and macs like creating hidden files and folders everywhere and it screws with the Minecraft loading procedure. Search the forums.
-
[1.15.2] Reference another dimension's world for render.
Server: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/industry/proxy/ServerProxy.java#L10 Client: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/industry/proxy/ClientProxy.java#L13-L23 Note that the FakeWorld I create there doesn't exist, doesn't save, and is basically there just to hold some tileentities so that container UIs update properly. It is likely insufficient for your needs. Oh, and registration: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/industry/ExpandedIndustry.java#L170-L180 And all code may be out of date, I haven't poked at it on 1.15 yet.
-
Cancel LivingDeathEvent
I'm almost certain the javadoc on the event even says this.
-
[1.15.2] When to check world.isRemote?
Everything. (Almost) Block dropping its loot? Game logic. Swords damaging zombies? Game logic. Crafting recipes? Game logic. Advancements? Game logic. Entity AI? Game logic. Placing blocks? Game logic. Enchanting items? Game logic. World generation? Game logic. The "things that aren't game logic" are: User input Graphical display Sounds Network communication/synchronization
-
Multiple Item Drops From Block NOT WORKING [getDrops]
What version of Minecraft?
-
Error Code -1?
THAT'S the actual error. I don't know why it happened, but there you go.
-
(1.14.4) Trying to Right-Click Water with an Item to turn it into Ice
You're right, its not. @_@
-
Error Code -1?
All that exit code means is that it exited with an error. You should find the actual error in the log.
-
uninstallation
The link at the top of every page has the answer.
-
(1.14.4) Trying to Right-Click Water with an Item to turn it into Ice
There is no reason to use the ItemUseContext event to control behavior on your OWN item. You can just override the relevant method in the item class. Also, raycasting ignores water typically, check how the boat and lillypad work.
-
Quite a lazy question
Most of them. What do you want to do?
-
Implementing up(), down(), etc
Set up Forge properly, the class files are in the referenced libaries group in your project hierarchy. If you're not using Forge then why are you posting on the Forge forums?
-
Implementing up(), down(), etc
Which is also fine. You now need to look at the cobblestone wall java class to see how those properties are set. Just changing around the json to use different "words" doesn't actually do anything. Those words have specific meaning and changing it to something else makes the entire block useless.
-
Implementing up(), down(), etc
That's not how blockstates work. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/assets/harderores/blockstates/axel.json#L10-L34
-
Implementing up(), down(), etc
You don't implement methods in a blockstate, you implement properties.
-
How do I rotate a texture?
Why not use a separate area of the texture?
-
Having trouble overriding vanilla recipes
The point of the link was to show that it is a bug that has not been addressed.
IPS spam blocked by CleanTalk.