Looking for someone to make a NoMelt Plugin

Discussion in 'Requests' started by Clik, May 5, 2019.

  1. Clik

    Clik Spider

    Messages:
    13
    GitHub:
    legofan48737
    Need someone to make a NoMelt plugin (similar to NoDecay, except it stops ice from melting)
    No commands, just a plugin thats enabled when the server turns on, and prevents ice from melting in any way.
     
  2. HimbeersaftLP

    HimbeersaftLP Chicken

    Messages:
    1,550
    GitHub:
    HimbeersaftLP
    I think disabling block ticks for ice will work, not sure though.
     
    jasonwynn10 and Clik like this.
  3. Clik

    Clik Spider

    Messages:
    13
    GitHub:
    legofan48737
    @HimbeersaftLP Im open to any suggestion, so how would i do that?
     
  4. HimbeersaftLP

    HimbeersaftLP Chicken

    Messages:
    1,550
    GitHub:
    HimbeersaftLP
    jasonwynn10 and Clik like this.
  5. Clik

    Clik Spider

    Messages:
    13
    GitHub:
    legofan48737
  6. Edwardthedog2

    Edwardthedog2 Skeleton

    Messages:
    889
    GitHub:
    edwardthedog2
    What errors does it give you?
     
  7. Clik

    Clik Spider

    Messages:
    13
    GitHub:
    legofan48737
    Code:
    2019-05-05 [20:26:50] [Server thread/INFO]: Loading pocketmine.yml...
    2019-05-05 [20:26:50] [Server thread/CRITICAL]: ErrorException: "yaml_parse(): parsing error encountered during parsing: did not find expected key (line 129, column 2), context while parsing a block mapping (line 6, column 1)" (EXCEPTION) in "src/pocketmine/utils/Config" at line 181
    Cant post the rest, its too long @Edwardthedog2
     
  8. SleepSpace9

    SleepSpace9 Witch

    Messages:
    67
    GitHub:
    sleepspace9
    If you've copy-pasted the yaml entry, you'll probably miss an additional blank at the beginning of the line.
    So in front of the dash needs to be two blanks, I hope you can see what I mean:
    upload_2019-5-6_13-6-50.png
    Also don't forget another blank after the dash. If it doesn't help, please post your pocketmine.yml.
     
  9. Clik

    Clik Spider

    Messages:
    13
    GitHub:
    legofan48737
    @SleepSpace9 thanks!! That seems to work (didn't send an error on loading), I'll test the ice melting but i think this gixed it.

    EDIT: Yea it stops Ice from melting. Next question: would adding in Fire (51:0) stop it from spreading?

    EDIT 2: Apparently adding in 51 does not stop fire.
    Is there some way to stop fire spreading?
     
    Last edited: May 6, 2019
    SleepSpace9 and Edwardthedog2 like this.
  10. SleepSpace9

    SleepSpace9 Witch

    Messages:
    67
    GitHub:
    sleepspace9
    Maybe cancel BlockBurnEvent?
     
    jasonwynn10 and Clik like this.
  11. Clik

    Clik Spider

    Messages:
    13
    GitHub:
    legofan48737
    Is that something that can be done with a Plugin? @SleepSpace9
     
  12. HimbeersaftLP

    HimbeersaftLP Chicken

    Messages:
    1,550
    GitHub:
    HimbeersaftLP
    Yes, in fact it needs to, I think
     
    jasonwynn10 and Clik like this.
  13. Clik

    Clik Spider

    Messages:
    13
    GitHub:
    legofan48737
    @HimbeersaftLP so
    Code:
    use pocketmine\event\block\BlockBurnEvent;
    ?
     
  14. Primus

    Primus Zombie

    Messages:
    322
    Clik likes this.
  15. Clik

    Clik Spider

    Messages:
    13
    GitHub:
    legofan48737
    @Primus so
    Code:
    public function blockFireSpreadEvent(BlockSpreadEvent $event) {
            if ($event->getBlock()->getId() === Block::FIRE)
            {
                $this->blockFireSpread($event->getBlock(), $event);
            }
        }
        public function blockFireSpread(Block $block, Cancellable $event) {
            $event->setCancelled(true);
    
    would work? (just a snippet from what ive typed up to merge NoDecay with NoBurn)
     
  16. Primus

    Primus Zombie

    Messages:
    322
    Did it work? Sorry for late response.
     
  17. Clik

    Clik Spider

    Messages:
    13
    GitHub:
    legofan48737
    @Primus no it didn't, I've never actually tried to fix it, just ended up using Netherrack instead of wool, and making sure nothing flammable is near the candelabras
    Probably should work on it more today and see if it can work as a separate stand-alone Plugin
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.