Everything posted by Draco18s
-
Integration of Custom Stairs
That seems pretty self explanatory to me. The only issue is that Block's toString method goes based on its registry entry, which failed, so it returns AIR. You have a block that doesn't have a registry name.
-
[SOLVED] Mana game mechanic in 1.14.4 help
https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/network/PacketHandler.java#L12 Namely you just say "here's my packet class's constructor, toBytes, fromBytes, etc." You can call those methods whatever you want as long as they have the right signature.
-
[1.12.2] Poisonous air class kicks players out of servers
Its not. Its just a comment that your code was unnecessarily verbose. My guess as to which line is line 28 is this one, as its the only one that appears to reference a function in the ItemStack class: You should probably be using attemptDamageItem I think its called. Its the one that takes Unbreaking into account.
-
EventBus Weather and Minecart Events
Speaking of, where did the high-altitude snowfall logic get moved to?
-
[1.12.2] Poisonous air class kicks players out of servers
else is sufficient here, by the way. It is impossible for both of those to be true at the same time or false at the same time.
-
[1.12] Adding custom item to existing tab and more
Note that the more items and blocks you create the more model and blockstate JSON files you'll have to update to reflect the change.
-
[1.12.2] Overlay Crashes Server
This is a Gui class. You call this class FROM the event handler, you don't MAKE it the event handler.
-
Leaves have texture as item, but no texture as block. 1.12.2
TheGreyGhost/MinecraftByExample Choonster-Minecraft-Mods/TestMod3 Draco18s/ReasonableRealism (not intended as a "by example" but there are things I do in my mods that I use as reference regularly)
-
[1.12] Adding custom item to existing tab and more
...and you have 64 characters of length to play with.
-
[1.14.4] Modifying Vanilla Content
Its part of the Event parent class.
-
[1.14.x] Smelting Output as Tag
You'll need a custom recipe for this. For example, I have something similar for crafting: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/hardlib/api/recipe/RecipeTagOutput.java Furnace (blasting, smelting, cooking) recipes use a similar system, I believe the class to look at is AbstractFurnaceRecipe and its subclasses.
-
[1.14.4] Modifying Vanilla Content
Reflection exists.
-
[1.14.4] Applying Fortune enchantment to BreakEvent
Agreed, but I never saw the method there either.
-
[1.14.4] [Solved] Problem with adding DirectionProperty to block
Looks good. Just wanted to make sure there wasn't anything there that might've been a problem too.
-
[1.12.2] Overlay Crashes Server
Again, that's not what side only does. If you want an event to only be registered on one side, you use the value=Dist.CLIENT parameter in the @EventBusSubscriber annotation. Also, its not called SideOnly any more. Its OnlyIn now. .
-
[1.14.4] Modifying Vanilla Content
Uh... public abstract class MobEntity extends LivingEntity { //... public final GoalSelector goalSelector; and protected void addSpawn(EntityClassification type, Biome.SpawnListEntry spawnListEntry) { //... } Forge build 1.14.4-28.0.45
-
[1.14.4] [Solved] Problem with adding DirectionProperty to block
You haven't set up the state container. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/block/WindvaneBlock.java#L33-L36 Also, show where you create and register your blocks
-
[1.12.2] Overlay Crashes Server
This does not do what you think it does. Adding this to the Gui class will just cause a class not found exception in another place. Omitting it and registering the gui only from the client proxy, meanwhile, works just fine.
-
[1.14.4] Displaying vanilla items on ground perspective.
Well, your block is telling the game that it is a block that completely fills its space and is opaque. This is default behavior. As such the game culled all the faces on its neighbors.
-
[1.14.4] Applying Fortune enchantment to BreakEvent
Are we sure about that? Because he's never posted the full class. Or even the method signature of where his code is located. And there's NO way he could get an infinite loop unless he was firing a BreakEvent from within a BreakEvent.
-
[1.14.4] Applying Fortune enchantment to BreakEvent
You shouldn't be making your item work from inside an event. You don't need an event, you can just override the method in the class....
-
1.12.2) Blockstate Json Issues?
https://github.com/xWhatsherfacex/Testing/blob/master/java/com/rnh/home/Init/ModItems.java#L26 Problematic Code #14
-
[1.14.4] Applying Fortune enchantment to BreakEvent
Yes, but you aren't passing in an event handler class, you're passing in an event.
-
[1.14.4] Question about world.destoryBlock
sorry, had the order wrong.
-
[1.14.4] Applying Fortune enchantment to BreakEvent
This doesn't do what you're trying to make it do.
IPS spam blocked by CleanTalk.