Everything posted by TheRPGAdventurer
-
Curseforge questions
GUYSSS!!!
-
Curseforge questions
Where to put the proof of consent I get this error: You must show proof of consent to use both the code and the project name.
-
Curseforge questions
ahhhh
-
Curseforge questions
like tags on youtube videos?
-
Curseforge questions
what is the slug all about?
-
Curseforge questions
I am now trying to upload on curse but I have some questions, 1. What is the slug below the summary in Settings in General? 2. What is this summary for? 3. What is the use of description? That's all my question for now, I wanna know how to turn it like this? https://minecraft.curseforge.com/projects/chisel#
-
Why does it need to be in a double and static or final when using numbers in when applying health to mob
ok got it! You just need to ensure it's static or final when applying health to mobs or other attributes public static double getBreedHealth() { EnumDragonBreed end = EnumDragonBreed.END; EnumDragonBreed nether = EnumDragonBreed.NETHER; if(end != null) { return 100; } else if(nether != null) { return 95; } return 85.0D; }
-
Why does it need to be in a double and static or final when using numbers in when applying health to mob
gonna update it back to where I was trying to do it, dragon is spawned via dragonegg block remember? DragonMounts? (DragonEggBlockHandler) sorry for typing too fast, my mom doesn't wanna see me something that has do with minecraft kinda personal, she's gone now tho.
-
Why does it need to be in a double and static or final when using numbers in when applying health to mob
me I mean the dragon. It shows me 1 HP for the dragon
-
Why does it need to be in a double and static or final when using numbers in when applying health to mob
I was applying it in apply entity attribute but removed it lately,
-
Why does it need to be in a double and static or final when using numbers in when applying health to mob
If it's not static or final, it just won't spawn or give me 1 HP
-
Why does it need to be in a double and static or final when using numbers in when applying health to mob
I tried using it without static and it gave me 1 health instead of the one I made it to
-
Why does it need to be in a double and static or final when using numbers in when applying health to mob
I say you wanna lokk at DragonBreed.class
-
Why does it need to be in a double and static or final when using numbers in when applying health to mob
https://github.com/PanzerTank101/rotd
-
Why does it need to be in a double and static or final when using numbers in when applying health to mob
Sorry, I am locked with my github account, just gonna upload tommorow or next day
-
Why does it need to be in a double and static or final when using numbers in when applying health to mob
Ok, I have a mob that is divided to 7 different breeds or kinds, I want these breeds to have different healths, I cannot use static because I cannot override a subclass especially final using a switch won't work either. I found some mods that made it possible yet using json files?
-
I want my event to be canceled when the player is in the end dimension, how?
SOLVED! Just gotta put the source code so I can help kids who would check this public class DragonEggBlockHandler { @SubscribeEvent public void onPlayerInteract(PlayerInteractEvent.RightClickBlock evt) { BlockPos pos = evt.getPos(); World world = evt.getWorld(); IBlockState state = world.getBlockState(pos); Block block = world.getBlockState(pos).getBlock(); if (world.provider.getDimensionType().getId() != 1) { // don't interact with vanilla egg blocks if configured if (RealmOfTheDragons.instance.getConfig().isDisableBlockOverride() && block == Blocks.DRAGON_EGG) { return; } // ignore non-egg blocks if (block != Blocks.DRAGON_EGG && block != BlockDragonBreedEgg.DRAGON_BREED_EGG) { return; } // deny action evt.setResult(Event.Result.DENY); // clear dragon egg block to avoid teleportation world.setBlockToAir(pos); // create dragon egg entity on server // put else if (!world.isRemote) { // this was inverted, i.e. evt.world.isRemote, but it should surely be this way EntityTameableDragon dragon = new EntityTameableDragon(world); dragon.setPosition(pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5); dragon.getReproductionHelper().setBreeder(evt.getEntityPlayer()); dragon.getLifeStageHelper().setLifeStage(EnumDragonLifeStage.EGG); // set breed type (custom dragon egg only, otherwise use default breed) if (block == BlockDragonBreedEgg.DRAGON_BREED_EGG) { EnumDragonBreed breed = state.getValue(BlockDragonBreedEgg.BREED); dragon.getBreedHelper().setBreedType(breed); } world.spawnEntity(dragon); } } } }
-
I want my event to be canceled when the player is in the end dimension, how?
@SubscribeEvent public void onPlayerInteract(PlayerInteractEvent.RightClickBlock evt) { // only handle right clicks on blocks // TODO: port for 1.9 // if (evt.action != PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) { // return; BlockPos pos = evt.getPos(); World world = evt.getWorld(); IBlockState state = world.getBlockState(pos); Block block = world.getBlockState(pos).getBlock(); // don't interact with vanilla egg blocks if configured if (RealmOfTheDragons.instance.getConfig().isDisableBlockOverride() && block == Blocks.DRAGON_EGG) { return; } // ignore non-egg blocks if (block != Blocks.DRAGON_EGG && block != BlockDragonBreedEgg.DRAGON_BREED_EGG) { return; } // deny action evt.setResult(Event.Result.DENY); // clear dragon egg block to avoid teleportation boolean setair = world.setBlockToAir(pos); // create dragon egg entity on server // put else if (!world.isRemote) { // this was inverted, i.e. evt.world.isRemote, but it should surely be this way EntityTameableDragon dragon = new EntityTameableDragon(world); dragon.setPosition(pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5); dragon.getReproductionHelper().setBreeder(evt.getEntityPlayer()); dragon.getLifeStageHelper().setLifeStage(EnumDragonLifeStage.EGG); boolean spawn = world.spawnEntity(dragon); // set breed type (custom dragon egg only, otherwise use default breed) if (block == BlockDragonBreedEgg.DRAGON_BREED_EGG) { EnumDragonBreed breed = state.getValue(BlockDragonBreedEgg.BREED); dragon.getBreedHelper().setBreedType(breed); } spawn = true; } if (world.provider.getDimensionType().equals(DimensionType.THE_END)) { evt.setCanceled(true); } } } if (world.provider.getDimensionType().equals(DimensionType.THE_END)) { evt.setCanceled(true); } how do I arrange this exactly?
-
Where is the field that handles when a player right clicks a block.(SOLVED)
Figured it out now. SubscribeEvent public void onPlayerInteract(PlayerInteractEvent.RightClickBlock evt) { }
-
Where is the field that handles when a player right clicks a block.(SOLVED)
Yup! it's not mine.
-
Where is the field that handles when a player right clicks a block.(SOLVED)
SubscribeEvent public void onPlayerInteract(PlayerInteractEvent evt) { // only handle right clicks on blocks // TODO: port for 1.9 if (evt.action != PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) { return; } It's from an older version, I'm trying to update it
-
Where is the field that handles when a player right clicks a block.(SOLVED)
How about the player interaction one, since they added offset ands i kinda lost where they are right now
-
Where is the field that handles when a player right clicks a block.(SOLVED)
I need to make changes to a block and want to do something when right click, but How?
-
1.12 Where is the texture location of the cross or crosshair in the middle of the screen
I'm talking about the cross that point and aims in the middle of the screen what block to hit, what mob to attack. I'm just into it for something.
-
1.10.2 Need help for a specific entity model maker software
Ok no need to, I just found out. It was Tabula.
IPS spam blocked by CleanTalk.