Everything posted by Draco18s
-
1.12.2-Problem with tile entity custom crafting table
Buttons are client side only. The server doesn't know about the button press unless you tell it (with packets). (Note: all you do is send a packet saying "this button was pressed" and let the server verify that everything's correct)
-
Distinguish singleplayer vs. multiplayer
As you did not provide very much code... Who knows.
-
Item doesn't registry!!!
event.getRegistry().registerAll(items) There is no need to for-each to pass each one individually to a method that accepts a list.
-
Trouble getting contents of a Chest
It isn't merged, so it won't work yet.
-
Trouble getting contents of a Chest
This event does not fire on 1.14 https://github.com/MinecraftForge/MinecraftForge/pull/6267
-
[1.12.2]Double-part block breaking problem
Whassit called... give me a bit to find it. Oh yeah, they split it up. getXOffset(), getYOffset(), getZOffset() You can also use blockpos.offset(facing).
-
Problem with not finding json files [1.14.4]
There are no errors displayed there that are important.
-
.setRepairItem not work
You don't need this if the tool material is set up correctly. Electrodynamite12, show more of your code. Namely, where you set ItemsRegister.HLOMINGOT to a value.
-
[1.14.4] Injecting into Existing Loot Tables, Blocks
Question: Do recipes and loot tables in general still work, or are all of them broken too?
-
[1.12.2]Double-part block breaking problem
...Did you not understand what I said? facing.offset totally tells you where the other block is because you know which half due to the HALF property. I said you couldn't do what you were doing with only a FACING property.
-
Problem with not finding json files [1.14.4]
I can't tell what file is malformed, but you have a malformed file.
-
[1.14.4] [SOLVED] Replace a Block on World Gen
Yes, it changed. Worldgen is threaded now. You have to create a Feature and register it with each biome (biome.addFeature(...)) you want it to appear in. Note that it is more complicated than that, as Features require a FeatureConfig class. NoFeatureConfig does exist if you don't need anything special. An example: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/world/HardOreFeature.java#L16 I recommend at least looking over how vanilla uses these classes and their methods.
-
How to start learning
Objects, inheritance, overriding, methods, variables, singletons, event driven design, and probably a bunch more. "Learning how to search for answers" being a very valuable tool regardless of what language you're working with (for instance, I see and vote-to-close-as-duplicate "I got this error it said something about null references?" question on Stack Overflow about twice a day).
-
[1.12.2]Double-part block breaking problem
You need two properties. HALF and FACING If HALF is A (call it whatever you want) you know you have the A part of the bed and can using the facing.offset property to find the other half. If HALF is B you know you have the B part of the bed and can use the facing.getOpposite().offset to find the other half.
-
[1.14.4] Why minecraft with mod dont want start?
Are you creating a mod, or are you trying to run one you downloaded from the internet?
-
[1.14.3] send message to chat
Not the worst stuff I've seen, but I didn't watch all of it.
-
[1.12.2]Double-part block breaking problem
Lets start here: if(facing != Down || facing != UP) lets assume that facing is equal to UP and do a replacement to see what happens when the code is run. if(UP != DOWN || UP != UP) obviously the first one is false and the second one is true. if(false || true) Now we simplify. False or True is true, because we only need one side to be true for the whole statement to be true. if(true) If we repeat when facing equals DOWN instead... if(DOWN != DOWN || DOWN != UP) if(false || true) if(true) What about a different direction? Say...EAST? if(EAST != DOWN || EAST != UP) if(true || true) if(true) All possible variations will resolve to if(true) because a value cannot both be equal to DOWN and UP at the same time. Oh boy. That's going to be a nightmare to figure out where all the bits are. Because when its on the floor or ceiling, the other "half" of the block is going to not be above or below.
-
on/off button for custom furnace
You linked to a specific commit, so when I looked at it, it was the old commit where it wasn't changed. As far as I can tell, it should work. Can you post a screenshot of the error? As for what you put here, you put the code that does whatever you want the button to do.
-
on/off button for custom furnace
Still not static: https://github.com/drmdgg/marijuanacraft1.14.4/blob/c4986b9a05326b9a17776e6000bf7e40957b3253/src/main/java/drmdgg/marijuanacraft/network/PacketButtonClicked.java#L27
-
on/off button for custom furnace
Push your changes to your repository. Only thing I can find out of place at the moment is this line: https://github.com/drmdgg/marijuanacraft1.14.4/blob/master/src/main/java/drmdgg/marijuanacraft/network/PacketHandler.java#L36 Which should be generic: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/network/PacketHandler.java#L45
-
[1.14-newer] deprecated method onBlockActivated
- on/off button for custom furnace
Both encode and decode need to be static.- on/off button for custom furnace
Good. Now fix these two lines. https://github.com/drmdgg/marijuanacraft1.14.4/blob/a246b0229e61058b95672d7f4813b5c3deb28229/src/main/java/drmdgg/marijuanacraft/network/PacketButtonClicked.java#L28-L29- on/off button for custom furnace
Yes. You're trying to write to the buffer, so what's the other one?- on/off button for custom furnace
Look at the parameters that are passed to you. - on/off button for custom furnace
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.