Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Mobs reacting to Judebox
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 3
HieroDrimm

Mobs reacting to Judebox

By HieroDrimm, October 22, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

HieroDrimm    0

HieroDrimm

HieroDrimm    0

  • Tree Puncher
  • HieroDrimm
  • Members
  • 0
  • 3 posts
Posted October 22, 2020

OK So I'm new and I'm trying to make hoglins dance when they hear pigstep from jukebox and i cant find out how to do it.

My idea is: Every tick if jukebox is playing disc and this disc is pigstep it checks if in X blocks radius the is a hoglin and if so set hoglin state to custom dance state.

Unfortunately I cant find list of event state to help me out and documentation shows only so much.

Maybe that I'm just stupid and cant find the obvious but if any one likes to point me to direction I would be grateful

  • Quote

Share this post


Link to post
Share on other sites

vemerion    56

vemerion

vemerion    56

  • Creeper Killer
  • vemerion
  • Members
  • 56
  • 220 posts
Posted October 22, 2020 (edited)
2 hours ago, HieroDrimm said:

OK So I'm new and I'm trying to make hoglins dance when they hear pigstep from jukebox and i cant find out how to do it.

I don't think hoglins have a built-in 'dance state', so you would have to do the dance animation yourself. How would you even make a boar dance? Shaking its head? :)

Edited October 22, 2020 by vemerion
  • Quote

Share this post


Link to post
Share on other sites

BlockyPenguin    4

BlockyPenguin

BlockyPenguin    4

  • Creeper Killer
  • BlockyPenguin
  • Members
  • 4
  • 113 posts
Posted October 22, 2020
7 minutes ago, vemerion said:

I don't think hoglins have a built-in 'dance state'

Isn't there a thing where they stand on their hind legs and shimmy? Or was that scrapped...

 

  • Quote

Today (22/10/20) I reached 100 posts!

I'm probably more excited than I should be for something so realistically minor...

Share this post


Link to post
Share on other sites

vemerion    56

vemerion

vemerion    56

  • Creeper Killer
  • vemerion
  • Members
  • 56
  • 220 posts
Posted October 22, 2020 (edited)
43 minutes ago, BlockyPenguin said:

Isn't there a thing where they stand on their hind legs and shimmy? Or was that scrapped...

I just googled it and saw this video. Had a good chuckle (but yeah that is not in the game).

 

Edit: Gz on your 100th post BlockyPenguin. Perhaps the Hoglins are dancing for you :)

Edited October 22, 2020 by vemerion
  • Like 1
  • Quote

Share this post


Link to post
Share on other sites

BlockyPenguin    4

BlockyPenguin

BlockyPenguin    4

  • Creeper Killer
  • BlockyPenguin
  • Members
  • 4
  • 113 posts
Posted October 22, 2020 (edited)
4 minutes ago, vemerion said:

I just googled it and saw this video. Had a good chuckle (but yeah that is not in the game).

Ah, shame. Glad it brought you a laugh though!

Also, back to OP's post, not sure how relevant it is, but any LivingEntity has two methods: isPartying and setPartying. It's what parrots use for jukebox detection. Hope it helps!

Edited October 22, 2020 by BlockyPenguin
  • Like 1
  • Quote

Today (22/10/20) I reached 100 posts!

I'm probably more excited than I should be for something so realistically minor...

Share this post


Link to post
Share on other sites

BlockyPenguin    4

BlockyPenguin

BlockyPenguin    4

  • Creeper Killer
  • BlockyPenguin
  • Members
  • 4
  • 113 posts
Posted October 22, 2020
8 minutes ago, vemerion said:

Gz on your 100th post BlockyPenguin. Perhaps the Hoglins are dancing for you :)

Haha, thanks vemerion

  • Like 1
  • Quote

Today (22/10/20) I reached 100 posts!

I'm probably more excited than I should be for something so realistically minor...

Share this post


Link to post
Share on other sites

HieroDrimm    0

HieroDrimm

HieroDrimm    0

  • Tree Puncher
  • HieroDrimm
  • Members
  • 0
  • 3 posts
Posted October 23, 2020
On 10/22/2020 at 4:42 PM, BlockyPenguin said:

Also, back to OP's post, not sure how relevant it is, but any LivingEntity has two methods: isPartying and setPartying. It's what parrots use for jukebox detection. Hope it helps!

It does but I was looking for something like a  list of every state for any entity. I dont want to be restricted to asking around next time I dont know something, or even (lord forbid) searching in code. Until now I learned by tutorials but they dont show everything :( . Do you use some documentation? I searched in this site's doc but I cant find a good list just examples

  • Quote

Share this post


Link to post
Share on other sites

poopoodice    114

poopoodice

poopoodice    114

  • Dragon Slayer
  • poopoodice
  • Members
  • 114
  • 901 posts
Posted October 23, 2020 (edited)

There's no such thing afaik. But you can try to find them yourself, for example you want to know how does Parrots handle jukeboxes, you may want to look into ParrotEntity, if you want to know how chicken drops egg, you look into ChickenEntity, it is usually pretty straight forward.

Edited October 23, 2020 by poopoodice
  • Quote

Share this post


Link to post
Share on other sites

HieroDrimm    0

HieroDrimm

HieroDrimm    0

  • Tree Puncher
  • HieroDrimm
  • Members
  • 0
  • 3 posts
Posted October 24, 2020
12 hours ago, poopoodice said:

There's no such thing afaik. But you can try to find them yourself, for example you want to know how does Parrots handle jukeboxes, you may want to look into ParrotEntity, if you want to know how chicken drops egg, you look into ChickenEntity, it is usually pretty straight forward.

This is no good news but thank you

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 3
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      Printing the in_open_water parameter to Debug (F3) screen

      By diesieben07 · Posted 30 minutes ago

      This is not ForgeAPI. This is decompiled Mojang code, as such documentation will be lackluster. You need to look at the source code, in particular func_234638_a_.
    • diesieben07
      Crafting Damage (1.16)

      By diesieben07 · Posted 31 minutes ago

      You need to override getContainerItem.
    • DeadZone
      Crafting Damage (1.16)

      By DeadZone · Posted 43 minutes ago

      I'm still unsure on how to do this with the .containerItem()
    • Arthurmeade12
      Error Conecting to My Minecraft Server

      By Arthurmeade12 · Posted 47 minutes ago

      I'll change to a different world and see if that works
    • CptPICHU
      Modpack Server always kicking players

      By CptPICHU · Posted 1 hour ago

      Hey there.   I am creating a modpack right now. It included 104 Mods for 1.16.4 The Pack launches just fine and working very nicely.   However, a server including all of this does launch, but throws a lot of errors and when connecting to it, everyone just can't. And there is always this very helpful error message:   [Netty Epoll Server IO #2/ERROR] [minecraft/NettyPacketEncoder]: java.lang.NullPointerException   Without any mods, the Server launches perfectly and everyone can connect just fine so the server setup might not be the issue. What am i supposed to do here? This looks very upsetting to me because i really have no clue what this error message even means.   You can take a look at log here: https://pastebin.com/x3bGbHa5   I hope someone has an idea what is going on...
  • Topics

    • Frozen Storm
      3
      Printing the in_open_water parameter to Debug (F3) screen

      By Frozen Storm
      Started 17 hours ago

    • DeadZone
      6
      Crafting Damage (1.16)

      By DeadZone
      Started 16 hours ago

    • Arthurmeade12
      9
      Error Conecting to My Minecraft Server

      By Arthurmeade12
      Started Saturday at 11:05 PM

    • CptPICHU
      0
      Modpack Server always kicking players

      By CptPICHU
      Started 1 hour ago

    • Abattoir
      7
      Client-side server world info

      By Abattoir
      Started December 29, 2020

  • Who's Online (See full list)

    • Abattoir
    • diesieben07
    • vemerion
    • schmiddi_0
    • CptPICHU
    • Frozen Storm
    • buckieplays
    • RAZA19
    • ChampionAsh5357
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Mobs reacting to Judebox
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community