• 0

    posted a message on [Forge 1.7.10] Redd's Advanced Tutorials (Make your OWN Potions!)

    I have a question, how would you make an effect like resistance? I'm making an effect, that is basically resistance, except it only works at night, it automatically gets disabled during the day, it's based off the "Night Immunity" effect in Town of Salem. This is my code:

    package com.PapyruSans.TownOfSalem.Main;
    
    import cpw.mods.fml.common.eventhandler.SubscribeEvent;
    import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent;
    import net.minecraft.util.DamageSource;
    import net.minecraftforge.event.entity.living.LivingHurtEvent;
    
    public class EventHooks {
    	@SubscribeEvent
    	public void onEntityUpdate(LivingUpdateEvent event){
    		if(event.entityLiving.isPotionActive(RegisterPotions.PotionNightImmune)){
    			if(event.entityLiving.worldObj.isDaytime()){
    				event.entityLiving.removePotionEffect(RegisterPotions.PotionNightImmune.getId());
    				return;
    			}
    		}
    	}
    }


    First of all excuse me for taking this long to reply, I don't really check the forums much.
    Anyway, I imagine you'd want to handle this in the "LivingAttackEvent" and check to see if event.getEntityLiving() is an instance of EntityPlayer. Then you can cast them as a player and check if they have your potion effect and it's nighttime. If this all correct then cancel the event and damage the player for source.getDamage()/whatever modifier, 2 for half damage for example. I can mock up some code for this at some point if you want.
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Introductions & Leavings
    Quote from Thunderhoof111»

    I have found some forums that are interesting and newer then this forum. I can't stand all the trolls and stuff on this forum. Not to mention the lag while loading. I have been posting less recently, because this forum has gotten boring and more boring recently.


    It was awesome when I first joined up here about a year ago but now it's not as awesome as it was, I never do perm leaves but I will be leaving for a few weeks. I'm also sick and tired of having to deal with the censor on here, if it wasn't here I would be swearing (not at others) if swear words exist, why not use them? This forum needs an overhaul and I would gladly take part in it.


    Definitely agree with a lot of these points. I hope you find what you're looking for, I'm sure you'll come across something good for you eventually.
    Posted in: General Off Topic
  • 0

    posted a message on Post your Art!
    Quote from Buttons_1»

    This isn't my usual theme. But it was a little fun for me. Drew it as a request from a certain individual known as Baum.




    I can't say what I named the sketch on this forum, so I adjusted its title for this post to: Link Doesn't Care....

    -snip-


    it's good despite being in the uncanny valley
    Posted in: Culture, Media & Arts
  • 0

    posted a message on The Dark Brotherhood (NOW RECRUITING!)
    Quote from Redstoner141»

    Was in a hurry :P

    It's aight, if you just edit the post after a read through OP it'll be all good.
    Posted in: Clans
  • 0

    posted a message on The Dark Brotherhood (NOW RECRUITING!)
    Quote from Redstoner141»

    Minecraft Username: ItzRed_


    Been playing since: 2013 (Bought Minecraft in 2014)


    Minecraft Skills: Average Builder (Help in labour?) and Good Redstoner (My role models are Grian and Mumbo Jumbo!)


    Code: ???


    Why should we pick you?: I have been playing Minecraft since a long time and I am very dedicated towards it as it is the only game I have bought :P and I like to manage things a lot like servers, shops, hotels etc. I can help you in designing a few buildings as I am not that good of a builder but I don't build wooden plank boxes as houses/shops :) and I can help in making Community builds such as Farms, Trade Centres etc. with redstone!


    I hope I get accepted! I play Minecraft for 18 hours / week or more sometime... (2-5 hours / day)


    Great application apart from the bit where you didn't read the whole thread!
    Posted in: Clans
  • 0

    posted a message on Ban the user above you #2

    Banned for playing tennis indoors.

    Posted in: Forum Games
  • 0

    posted a message on Post your Art!

    Sword hand is misshapen.

    Posted in: Culture, Media & Arts
  • 0

    posted a message on How well are you known?

    9/10

    Posted in: Forum Games
  • 0

    posted a message on Post your Art!

    Thanks! I cant release to much on the game right now but i will try to keep updating if you guys want :)

    We are developing it in Unreal 4 in C++ and unreal blueprint. here is an in-game render, no UI yet XD:

    [snip snoop]

    It looks kinda like it's cell shaded or similar? I think it's a really cool aesthetic, I don't think there are any cartoon styled steampunk games (that are good) so I'd love to see it!
    Posted in: Culture, Media & Arts
  • 0

    posted a message on Post an insane lie about the person above you

    Has a good avatar

    Posted in: Forum Games
  • 0

    posted a message on Ban the user above you #2

    Banned for unfunny signature as well as PC elitism.

    Posted in: Forum Games
  • 0

    posted a message on How well are you known?

    6/10

    Posted in: Forum Games
  • 1

    posted a message on Post your Art!

    How about this:




    From this:




    the art is ok but
    why
    Posted in: Culture, Media & Arts
  • 0

    posted a message on EULA Revisited: an Updated Q&A From Mojang

    The EULA is the dumbest concept in the world. Get this:

    Servers are expensive

    The Eula makes Servers stop selling ranks

    Servers stopping to sell ranks makes them lose money

    Servers losing money makes them go bankrupt

    Servers going bankrupt causes hub servers to die

    Hub servers dying turns minecraft MP into a bunch of 24 player servers with greedy owners

    Minecraft MP dies because nobody likes the 24 player servers


    1. Wrong
    2. Wrong as servers don't have to stop selling ranks
    3. Wrong as they don't lose money as they don't have to stop selling ranks
    4. Wrong because they can't go bankrupt because they don't lose money as they don't have to stop selling ranks
    5. By "Greedy owners" you mean the people who the EULA shuts down?
    Posted in: Discussion
  • 0

    posted a message on EULA Revisited: an Updated Q&A From Mojang
    Quote from Dheatly23»


    But minecraft IS NOT an engine. They once want to add Lua Scripting, but it was cancelled :( . Minecraft will NEVER being an engine, it's a game.


    Plugins and mods my dude.
    Posted in: Discussion
  • To post a comment, please or register a new account.