
MineModder2000
Members-
Posts
298 -
Joined
-
Last visited
Everything posted by MineModder2000
-
I want to make a Halloween themed mod on time for the season, but I am currently working on a bigger mod that will take much longer to finish. I already copied the java and resource files over, its good to do so you have a back up. I am thinking I will just delete the current mod files out, and then add the other stuff in, as this smaller season mod will only use the main mod file probably. Then after I am done I will drag and drop and replace the files from my first mod. Is there any better way?
-
[1.14.4] Making a Trident like item
MineModder2000 replied to MineModder2000's topic in Modder Support
Okay how about we at least try to solve the problem of it not rendering correctly while its being readied for a toss? The TridentItem class has a resource location titled "throwing", I need to replicate the same, and put whatever belongs in there. I already point to my own "mymod", "throwing" in my Spear class, but I'm not sure what exactly is next. -
[1.14.4] Modifying Vanilla Content
MineModder2000 replied to MineModder2000's topic in Modder Support
I did it! Very easy, I was first messing around with the Respawn Event, quickly realizing that was the wrong one because its fired afterwards. Putting the code in the event did the trick ? -
[1.14.4] Modifying Vanilla Content
MineModder2000 replied to MineModder2000's topic in Modder Support
Okay so this is working great for on load spawning, but the inventory items still respawn every time the player does. So the player will get more and more stuff the more they die... -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
Definitely does, only one state at a time, I reworked by logic around this and it works now ? -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
I have a problem. I can't use both this IntegerProperty and the BooleanProperty I made before. If I set the block state to the integer, then to the boolean later in the tick() method, the integer property is overriden, Instead of incrementing every time the method is called as desired, it starts from whatever I have the value set to in the constructor. It only works if comment out the line that sets the boolean property. -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
Oh of course! -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
Actually I figured out a different and more desirable way to do it. I need now, to learn how to use IntegerProperties. I made one but I want to either increment or decrement it based on some check in the tick() method, I don't know how to do that. The with() method inside of state will set it to a discrete value, whereas I want to basically i++ or i-- the value. -
[1.14.4] Modifying Vanilla Content
MineModder2000 replied to MineModder2000's topic in Modder Support
Oh right...... duh. -
[1.14.4] Modifying Vanilla Content
MineModder2000 replied to MineModder2000's topic in Modder Support
I should've added that I was already aware of this Event, and I have in fact have used it to spawn items on load. The problem is, as you mention, this will cause the item to be spawned every-time without some sort of a check. What I'm thinking is to include in that check, a persistent variable that keeps tracks of ticks, and then only if the number is below say 10, the spawn occurs. The variable would have to be tied to a capability, which I already have set up. I was just hoping there was a more direct way of doing this. -
[1.14.4] Modifying Vanilla Content
MineModder2000 replied to MineModder2000's topic in Modder Support
No answer huh...... Well then what's the easiest way to make the player(s) start off with certain items? In other words the inventory already has a steak or something when the world is first started. -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
Well for example there is the Is_On_Fire flag for entities, where is the class that shows how this is used? -
[1.14.4] Making a Trident like item
MineModder2000 replied to MineModder2000's topic in Modder Support
Nobody knows? -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
So I done diddly did this : And this in my main mod class : LootConditionManager.registerCondition(new Ready.Serializer()); So now how do I actually use it so that the boolean here changes when I need it to from my block class? -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
Oh I see now. -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
I see the implementation examples in vanilla files, but I don't understand how to register. The docs say to use this method : LootConditionManager.registerCondition(), but it takes an instance of a class that cannot be instantiated. -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
New Q. How could I make custom flags for drops? For example, pigs and other animals drop cooked rather than raw meat if they die while on fire, which is done by a flag check for "is_on_fire". I want to do something similar, so my block only drops something when a certain condition is met. -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
Oh gotcha. -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
How does it come out to 4 if it's two sides... maybe i shouldn't ask. Well that means tick() will be called 4 times as, worldIn.getPendingBlockTicks().scheduleTick(pos, this, 360, TickPriority.HIGH); is in that method, but this shouldn't affect anything. Whoops forgot all about that, I was so focused on that method. -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
Actually Houston, I found the answer. I was able to get the variable to change in tick method, the problem is the onBlockAdded is called multiple times, four times or more I counted, so it resets the variable back to what I had it set to in there. I guess the solution is to not have it set in there, and just deal with it being true by default, easy adjustment. I'll call it UNREADY instead of READY. But anyways is multiple calls to that method with only one block created normal? -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
Odd.... When I have this line : worldIn.setBlockState(pos, state.with(READY, 'value'), 3); in my onBlockAdded method, I can change the variable to true or false, as confirmed by println(). It just won't change inside of tick method. My original println() actually works fine by the way. -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
Oh.. Well I did the new println() you gave me and it still shows false.... -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support
Well hell with the prinln(), what should I do instead to change the variable state. -
(SOLVED) [1.14.4] Block Ticking and Properties
MineModder2000 replied to MineModder2000's topic in Modder Support