Everything posted by Draco18s
-
Override Vanilla Blocks class
Do not do this. Do not create registry entities in a static location. You want a static field referencing a block? Use @ObjectHolder.
-
1.15.2 unknown blockstate problems
Welcome to The Flattening. Do not do this. And yes, that's coming from me, where I basically did this, because I had a mechanical reason to use a block state (the variants were still valid), and boy howdy getting items to drop (for silk touch) was a bitch.
-
Override Vanilla Blocks class
No, but it should (must? Not sure if Forge type-checks) extend the original's class, or Bad Things will happen.
-
Ticking block entity
Cool you replied to a version of my post that doesn't exist any more because I thought I was in another thread and posted the wrong thing.
-
[SOLVED] Can't register Tile ( Forge 1.15.2 - 31.2.0 )
https://github.com/BastouP411/bperipherals/blob/master/src/main/java/fr/bastoup/bperipherals/BPeripherals.java#L52 All items need models, there is no point in attaching a "I have a model!" interface to a class that already knows it needs a model (and that interface exposes things that are already public anyway, so, double-useless). Also, this is 1.12 code and isn't needed any more anyway. Don't create things statically, use a DeferredRegister if you want to do that.
-
Ticking block entity
Do either are: a) already in it, just do whatever you want b) in a place where you have access to a World object and BlockPos location, so you can call World#getTileEntity(pos) and have access to your TileEntity. Remember, there is more than one copy of your TE in the world.
-
Modpack crashes after update.
Go complain to them. I don't know what you think Forge is going to do.
-
How to create a new apply_bonus loot table modifier
apply_bonus is a function. Its entirely defined by the java code code class ApplyBonus. You can find it at net.minecraft.world.storage.loot.functions package. the "ore_drops" formula is defined down on line 128 or so.
-
Mod data overrides vanilla
You probably have a bad file somewhere still.
-
Mod data overrides vanilla
If you're trying to add YOUR blocks to the tag, you need to tell the tag about YOUR block which should have YOUR mod ID. All of the ones I linked are wrong.
-
Mod data overrides vanilla
Dude, compare the your other files. Like this one. https://github.com/slit-bodmod/lotb-mod/blob/master/src/main/resources/data/minecraft/tags/items/leaves.json#L4
-
Mod data overrides vanilla
I was right you have a malformed json file. This looks wrong: https://github.com/slit-bodmod/lotb-mod/blob/master/src/main/resources/data/minecraft/tags/items/logs.json#L4 https://github.com/slit-bodmod/lotb-mod/blob/master/src/main/resources/data/minecraft/tags/items/wooden_stairs.json#L4 https://github.com/slit-bodmod/lotb-mod/blob/master/src/main/resources/data/minecraft/tags/items/wooden_buttons.json#L4 https://github.com/slit-bodmod/lotb-mod/blob/master/src/main/resources/data/minecraft/tags/items/slabs.json#L4 ditto the same problem for the block tags
-
Mod data overrides vanilla
Well, it can, if the json file is invalid. Any invalid json file inside /data will cause ALL data files to not be loaded. Its rather frustrating. Slit_bodmod, its unlikely that the problem is your walls.json file, have you added any other data files (such as recipes or advancements?)
-
[1.15.2] (Solved) How to setBlockState in ClientChatEvent?
uh... event.getPlayer().getEntityWorld()?
-
Ticking block entity
This makes no sense. That's what this is for:
-
Ticking block entity
Why is all of this shit static? Where's your actual block class? Your tile entity class?
-
Random ticks
Override tick() in your block class and do whatever you want.
-
[1.15.2] Tile entity container transferStackInSlot
If it returns false for all item stacks, then either: Your MaltingRecipe recipe list is empty You're using the recipe manager incorrectly
-
[1.15.2] (SOLVED) How to check certain blocks in the world and break them
World#getBlockState()
-
[1.15.2] (SOLVED) How to check certain blocks in the world and break them
I wonder if there is some kind of ... Block....Position varaible passed to your item through one of the various methods related to breaking blocks...
-
LazyOptional crushes casting to IEnergyStorage
- [1.15.2] Ticking Memory Connection when trying capabilites
You have a null pointer on this line.- mods.toml missing metadata for modid test
This is the ID that needs to be in your @Mod annotation.- mods.toml missing metadata for modid test
Have you set up a mods.toml file for your mod?- Shutting Down Internal Servers. A fatal error has occurred, this connection is terminated
1) 1.7.10 is five years old, Forge no longer supplies support 2) This board is for people who make and program mods, not debug why your collection doesn't play nice. 3) You did not include a log so we can actually determine what the problem was (your thread title is equivalent to "doctor it hurts.") - [1.15.2] Ticking Memory Connection when trying capabilites
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.