Everything posted by Draco18s
-
1.15.2 Adding minecraft.planks tag for a block do not provide vanilla recipes.
Show your code. Better yet, link a working git repository.
-
problem with changing name of my item
This is a forum. You don't.
-
Help With Containers and Slots
Ever since they were introduced, which I believe was 1.12
-
Making server friendly mods
How much programming knowledge do you have?
-
Help With Containers and Slots
Don't use IInventory, use ItemStackHandler.
-
Making server friendly mods
Subscribe to the ... BreakSpeedEvent (if I remembered the name correctly) and set the event's speed (might be "newSpeed" or similar) to 0 when the condition you want (1 durability) is true.
-
[1.15.2] Question about custom recipe
Ah, I misunderstood the problem. So basically what I said was inverted. "The server controls that code and the client knows fuckall about the data until you pick the item up." You either need to run similar code on the client or use packets.
-
[1.15.2 | SOLVED] Get ItemStack attack damage
Well, if you look at the arrow entity, you'll see that it maintains a reference to the player that fired it.
-
Sides problem
Which client? More than one player can be connected, you have to pick one.
-
[1.14.4] How to add to vanilla loot tables without overriding them?
You registered the class itself to the event bus. This requires the event listeners to be static (because instance methods require an instance).
-
getBlockState in unloaded chunk (1.15.2)
Unloaded chunks do not exist. Its not that they don't have a state, they literally, fundamentally don't exist. An unloaded chunk can be in one of three states: Never Created Created, but not generated (Minecraft has allocated memory, but not run generation, and it is possible for a chunk to be part way through that process)* Populated, but saved to disk There is no way to differentiate between these states. The only "solution" is to load the chunk. *Technically there are ways to query block states in these chunks, but as their memory is in another thread, it is not safe to do so.
-
getBlockState in unloaded chunk (1.15.2)
If it is unloaded, it doesn't exist. You can only view loaded chunks.
-
Add event to unlock new recipes in recipe book. + grouping in recipe book.
I know bugger all about recipe book groupings.
-
[1.15.2] Config-defined block variants
FYI, blocks and items are registered before configuration events are fired. This is intentional.
-
Changing block's texture to another
The "do it with code" way does not involve writing new blockstate json files or simulating them in any way. YOUR block has a tile entity that stores a block state of the block to "mimic." You then extract a texture from that blockstate's model and use it in a TileEntity renderer using your own geometry. You will need to figure out how to extract the desired texture from the model yourself.
-
Changing block's texture to another
Its not better and easier if you get half way there and then have no clue what the next part is. I'm not even sure what you're trying to do, there.
-
[1.15.2] How do I set multiple match_tool conditions in .json file
Yes. However, be aware that the default is that all conditions must be true in order for the check to pass. If you want an OR logic operator, you need to declare that too.
-
[1.15.2] How do I set multiple match_tool conditions in .json file
Well, for one, you can't have two objects with the same key. So your attempt to name two items doesn't make any sense. For two, conditions is an array.
-
[1.14.4] How to add to vanilla loot tables without overriding them?
Show more of your code.
-
[1.14.4] How to add to vanilla loot tables without overriding them?
Create a json loot table for what you want. Then do this: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderfarming/EventHandlers.java#L51-L53
-
[Solved] [1.15.2] Can someone explain this (Vanilla drops related))
Example code of what? You never asked a question.
-
[1.15.2] Question about custom recipe
Because, fundamentally, that code runs on the client and the client controls bugger all. Only the server can modify that data.
-
Problem with Doors
You can't make blocks that extend outside the 1x1x1 volume. No. No. Stop trying. You can't. The game doesn't support it, everything breaks. If you absolutely must have this feature, then you must use extra blocks, like how the vanilla bed and door do.
-
Problems with rendering a line (1.15.2)
Maybe some old code of mine will help. https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/hazards/client/HazardsClientEventHandler.java#L188
- SOLVED [1.15.2] Non Opaque Block
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.