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

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

      By Frozen Storm · Posted 10 minutes ago

      I've looked at FishingPredicate, but both the documentation and the class definition I found with ctrl+click in Eclipse have some very confusing field and function names, so I'm having a little trouble with how I'm supposed to use it.   I've found a (somewhat old) post that explains briefly how Predicates work in general (although looking at the docs of other predicates, it seems the apply method has been renamed to test - or maybe this is specific to Forge API predicates?), but I'm not sure how I'm supposed to initialise FishingPredicate (or otherwise obtain it from the player/water block/fishing rod/...).
    • diesieben07
      Client-side server world info

      By diesieben07 · Posted 23 minutes ago

      It uses the server IP I'm guessing.
    • Abattoir
      Client-side server world info

      By Abattoir · Posted 26 minutes ago

      I found a mod called Xaero's Minimap which can store waypoints per world.     Do you know how can it recognise the server worlds or it uses a custom method?
    • Luis_ST
      [1.16.5] Help with custom Glass Block

      By Luis_ST · Posted 42 minutes ago

      i just looked at it but is this not controlled by method propagatesSkylightDown beacause: and it dosent work. @Deprecated public int getOpacity(BlockState state, IBlockReader worldIn, BlockPos pos) { if (state.isOpaqueCube(worldIn, pos)) { return worldIn.getMaxLightLevel(); } else { return state.propagatesSkylightDown(worldIn, pos) ? 0 : 1; } } this is currently my block class: https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/blocks/TintedGlass.java
    • diesieben07
      Client-side server world info

      By diesieben07 · Posted 52 minutes ago

      Then the server doesn't send the hashed seed.   You can use the server IP, I guess.   ClientPlayerNetworkEvent.LoggedInEvent woudl be a much better choice here. Do not use getPrivateValue. Use findField and store the Field in a static final field.
  • Topics

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

      By Frozen Storm
      Started 16 hours ago

    • Abattoir
      7
      Client-side server world info

      By Abattoir
      Started December 29, 2020

    • Luis_ST
      2
      [1.16.5] Help with custom Glass Block

      By Luis_ST
      Started Friday at 07:35 AM

    • uraketu
      6
      Forge Crashing with no reason

      By uraketu
      Started 22 hours ago

    • DancZer
      3
      Bug: Nether Quarz Ore does not have toolType

      By DancZer
      Started December 29, 2020

  • Who's Online (See full list)

    • Frozen Storm
    • Nuparu00
    • Tavi007
    • Choonster
    • Abattoir
    • diesieben07
    • vemerion
  • 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