-
Content Count
14024 -
Joined
-
Last visited
-
Days Won
103
Content Type
Profiles
Forums
Calendar
Everything posted by Draco18s
-
Open Command Block GUI When Right-Clicking on Entity???
Draco18s replied to perigrine3's topic in Modder Support
You don't show where this tileentity is coming from, but odds are either it doesn't exist (is null) or isn't a tileentity. -
[1.14.4] get item out slot of lazyoptional<IItemHandler>?
Draco18s replied to Kenneth201998's topic in Modder Support
Get stack Insert item Set stack (probably not clean code, however; looking at it made me wonder if I could have written it better) Extract item Get slot limit -
[1.14.4] Tile entity is missing a mapping.
Draco18s replied to Kenneth201998's topic in Modder Support
Why are you overriding a function that you do nothing but call the existing implementation? -
[1.14.4] Best way to sync progress in tile entity.
Draco18s replied to Legenes's topic in Modder Support
Well, yes. Because vanilla did things in a way that aren't extendable. I'm not debating that. I'm saying that the method is returning a sensible value and that it's the wrong thing to look at. -
[1.14.4] Best way to sync progress in tile entity.
Draco18s replied to Legenes's topic in Modder Support
Items, in general, by default, are not furnace fuel. If an item is fuel, it will override that method. -
[1.14.4] Best way to sync progress in tile entity.
Draco18s replied to Legenes's topic in Modder Support
You don't need to sync very much or very often. The client, provided that the amount of fuel has been synced as the result of an inventory change, can calculate the RF conversion process all on its own using the exact same code as the server side tile entity. There is no point or need to sync the progress. -
Where is the packet coming from? Why aren't you writing code to directly give the player an item?
-
TiC is open source.
-
https://minecraft.gamepedia.com/Tag Those are items, not tags. If you want to use items, you need to use "item". If you want to use tags, you need to pass a valid tag.
-
That's the advancement that grants the recipe, not the recipe.
-
This does not require code, all you have to do is create a loot table JSON file and place it in the correct directory.
-
Try any vanilla block and flowing water. None of them function with it either.
-
This is because the "waterlogged" system isn't finished.
-
[1.14.4] [SOLVED] Gui Slots Behave Weird
Draco18s replied to StefanDeSterke's topic in Modder Support
As an example: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/client/ClientEventHandler.java#L19 A "factory" is just a method that returns a given type, in this case your GuiScreen. Most of the time you will be able to do this through a 0-parameter constructor. -
[1.14.4] [SOLVED] Gui Slots Behave Weird
Draco18s replied to StefanDeSterke's topic in Modder Support
Yes, that is valid. But my point was that's not how (generic) you do the thing (generic) you are trying to do right now. Which I found by searching this (which is in a banner at the top of every page here on the forums) for "container" -
Looks similar to what I do, check out my model and block: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/assets/harderores/models/block/ore_hardiron_1.json https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/block/ore/HardOreBlock.java
-
[1.14.4] [SOLVED] Gui Slots Behave Weird
Draco18s replied to StefanDeSterke's topic in Modder Support
This is not how you open GUIs. -
Transparent Vanilla Doors - Help! I have no idea what I'm doing!
Draco18s replied to Eedelia01's topic in Modder Support
/me does not see updated code or an updated error message -
[1.12.2] Modifying vanilla blocks to render translucent texture
Draco18s replied to Eedelia01's topic in Modder Support
-
The only constructor that SwordItem has takes parameters, you aren't giving it those parameters, go look at the class to see what parameters it wants.
-
Replacement Vanilla Door doesn't return a value / is void?
Draco18s replied to Eedelia01's topic in Modder Support
Or as a visual aid: register(new TestDoor(Material.WOOD)).setHardness(... vs: register(new TestOre().setHardness(3.0F)...