Everything posted by Draco18s
-
how does the FlowerPotBlock-class know, wich block to show, if put a plant?
https://www.w3schools.com/java/java_for_loop.asp
-
[1.15.2]Change blockstate when it places
It doesn't work because nether portal facing is set by the code that deals with the detection of the fire inside an obsidian frame. The portal block was never intended to exist in the player's inventory and as such it does not follow placement update rules. Because, frankly, what do you expect to happen if you place three of them like this: XX X
-
how does the FlowerPotBlock-class know, wich block to show, if put a plant?
All I have to say is, "Wow dude, do you Java?"
-
[1.15.2] mods.toml which version
The mods.toml defines your mod version. The @Mod class doesn't give a fuck and your gradle.build file's version is only used for setting the file name when compiling.
-
Fluid with properties
Not easily. You're going to need to either maintain your own data structure to track all sources of heat in the world yourself (think of how Minecraft stores chunk data) or you're going to need to make approximations, like making every block of yours search the area around it to see if there are "hot" or "cold" blocks nearby and make a best-guess at its own heat level based on what it finds).
- Specific craft
-
[1.14.4] How to change block bounds? (Update, Problem with BlockStates)
Yes. That's why it exists. If a neighbor changes, allow the block to update its own state.
-
[1.14.4] How to change block bounds? (Update, Problem with BlockStates)
As has been mentioned in one thread or another on this forum about once a week for the last year and a half: Mojang uses @Deprecated incorrectly. By the way: https://github.com/arjolpanci/VanillaExtended/blob/master/src/main/java/teabx/vanillaextended/main/VanillaExtended.java#L84 Don't do BlockList.transportPipe =, use @ObjectHolder annotations. https://mcforge.readthedocs.io/en/1.15.x/concepts/registries/#injecting-registry-values-into-fields As for why you can still walk through the block I am not sure.
-
[1.15] Item with attribute
How about using Capabilities, instead? https://mcforge.readthedocs.io/en/1.15.x/datastorage/capabilities/#creating-your-own-capability
-
[1.14.4] How to change block bounds? (Update, Problem with BlockStates)
Correct!
-
Item disappears after player crafts the item with custom IRecipe implementation.
Override getRemainingItems.
-
onItemRightClick return an item [1.15.1]
Sigh. Let me break this down. X instanceof Y requires X to be an object and Y to be a Class. X == Y requires X to be an object (or primative) and Y to be an object (or primative). Your code, item instanceof ItemInit.RUBBER_EXTRACTOR, has X is an object, Y is an object.
-
Registry Event is not called (1.15.2)
By the way, don't do this. Use @ObjectHolder annotations.
-
[1.14.4] How to change block bounds? (Update, Problem with BlockStates)
Why don't you go look? Those files are in your workspace too (check client-extra.jar) I suggest double checking what that code actually does.
-
Add event to unlock new recipes in recipe book. + grouping in recipe book.
This is not an existent tag. There is forge:ingots/iron though.
-
[1.14.4] How to change block bounds? (Update, Problem with BlockStates)
Check the vanilla blocks that do this, like the Fence.
-
Add event to unlock new recipes in recipe book. + grouping in recipe book.
Here's a couple of examples. https://github.com/Draco18s/ReasonableRealism/tree/1.14.4/src/main/resources/data/expindustry/advancements/recipes You can set up your own conditions as well, I just don't have any ready examples.
-
Add event to unlock new recipes in recipe book. + grouping in recipe book.
Use advancements instead. https://minecraft.gamepedia.com/Advancements
-
How to write and read nbt data of particular entity?
Yes
-
How to write and read nbt data of particular entity?
- Block Smaller than 16x16x16 doens't render adjacent blocks sides
Fix its returned voxel shape. Your block is not a full cube, so don't return a full cube voxel shape.- Goblin! mod working not correctly
Contact the author.- [1-15] [SOLVED] Blocks with two guis that are not communicating
By about 400 nanos, maybe, by avoiding a couple of function call overheads. (That's 0.0004 ms)- HarvestDropsEvent not working as expected.
- [1-15] [SOLVED] Blocks with two guis that are not communicating
https://github.com/matt1999rd/GatesMod/blob/master/src/main/java/fr/mattmouss/gates/network/PacketRaisePrice.java#L32 Holy Jesus. That line can be simpler. Why do you get a world, get a server, get a world? You already HAD a world. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/industry/network/ToServerFilterClick.java#L52 - Block Smaller than 16x16x16 doens't render adjacent blocks sides
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.