-
Content Count
16092 -
Joined
-
Last visited
-
Days Won
146
Everything posted by Draco18s
-
Ignore that stuff. It's not relevant. This. These are accessible from your code.
-
Ignore the operational code and think about what the class exposes to other classes. What fields and properties does it have?
-
Look at the Blocks class.
-
Whether or not it actually uses the alpha value depends on various other factors. (And of course it accepts 0xffffff: that's a valid integer literal)
-
The number you see is in decimal. If you convert it to hexidecimal you will get a familiar 0xAARRGGBB
-
Deferred Registers not Wanting to Work in Forge 1.15.2
Draco18s replied to Justforgames250's topic in Modder Support
Someone missed the board description. -
Sorry, I'm telepathetic, not telepathic. You're going to explain this to your local rubber duck.
-
That makes no sense. Why would you want to clear the data just because the player logged out and logged back in again?
-
Create the channel on the server side. When the client connects, if they don't create that same channel, they cannot connect. You don't have to do anything besides create the channel.
-
BreakSpeedEvent
-
[SOLVED][1.16.4] Add extra loot for vanilla mobs
Draco18s replied to theagente00g's topic in Modder Support
The fuck is this class name? https://github.com/GustavoSasaki/Ragnarok-Cards/blob/main/src/main/java/ragnarok_cards/Items/aa.java#L23 Use proper CamelCase naming convention. https://github.com/GustavoSasaki/Ragnarok-Cards/blob/main/src/main/java/ragnarok_cards/Items/aa.java#L77 This condition will never be true. https://github.com/GustavoSasaki/Ragnarok-Cards/blob/main/src/main/java/ragnarok_cards/Items/aa.java#L85 Beyond that I'm not sure, I've not messed with entity loot modifiers myself. -
quick way to fill/remove blocks using two BlockPos
Draco18s replied to blinky000's topic in Modder Support
The only way to change a large amount of data is to change each piece of data one at a time. I don't know why you'd think there was a solution to this faster than O(n) -
Why the fuck are you here and not using the "help & support" link in that site's footer?
-
D7 said stop making jar mods, that is, mods that modify the vanilla files directly and are installed by opening up the minecraft.jar in a zip editor. You're free to make Forge mods (this is the Forge forums).
-
Yeah I have no idea why you're asking on the Forge forums about how to mod with Bukkit. You also appear to be modding for 1.12:
-
Look at the SlabBlock to see how it handles becoming a double slab.
-
That sounds like something that should be easy to fix. You add license information to your mcmod.info file.
-
[Solved] 1.16 Storing ArrayList<BlockPos> to NBT
Draco18s replied to Titmar's topic in Modder Support
To serialize: Store the length of the array. Push all serialized BlockPos values. To deserialize: Read the length of the array. Deserialize that many BlockPos values. -
[1.15.2] Opening a different container with the same itemstack
Draco18s replied to NindyBun's topic in Modder Support
Oy vey. This will always return true. As will this and this. Use orElseThrow here, that's why it exists. You know what Capabilities are and yet, you did this. Your tool is effective on nothing. This is an unchecked cast. Other mods may have items with an inventories too. This code will crash the server if you hold one of their inventory-capable items and use your keybind. -
Yeah, that's wrong. https://github.com/Draco18s/ReasonableRealism/tree/1.14.4/src/main/resources/data/harderores
-
The first build of 1.16.5 is 1.16.5-36.0.0 Official mappings were added in 1.16.5-36.0.48: