-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update how iron lever/buttons work to use capability, add bell functi…
…onality
- Loading branch information
Showing
14 changed files
with
186 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/generated/resources/data/allomancy/advancement/main/noisey.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parent": "allomancy:main/coinshot", | ||
"criteria": { | ||
"allomantically_activate_bell": { | ||
"conditions": { | ||
"entity": [ | ||
{ | ||
"block": "minecraft:bell", | ||
"condition": "minecraft:block_state_property" | ||
} | ||
] | ||
}, | ||
"trigger": "allomancy:activated_allomancy_block" | ||
} | ||
}, | ||
"display": { | ||
"announce_to_chat": false, | ||
"description": { | ||
"translate": "advancements.noisey.desc" | ||
}, | ||
"hidden": true, | ||
"icon": { | ||
"count": 1, | ||
"id": "minecraft:bell" | ||
}, | ||
"title": { | ||
"translate": "advancements.noisey.title" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"allomantically_activate_bell" | ||
] | ||
], | ||
"sends_telemetry_event": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 3 additions & 7 deletions
10
...api/block/IAllomanticallyUsableBlock.java → ...ancy/api/block/IAllomanticallyUsable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
package com.legobmw99.allomancy.api.block; | ||
|
||
import com.legobmw99.allomancy.modules.extras.block.IronLeverBlock; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.entity.player.Player; | ||
import net.minecraft.world.level.Level; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
|
||
/** | ||
* This interface can be used to signify if a block should react to being pushed | ||
* or pulled, rather than moving the pusher | ||
* | ||
* @author legobmw99 | ||
* @see IronLeverBlock | ||
* @see com.legobmw99.allomancy.modules.extras.ExtrasSetup#ALLOMANTICALLY_USABLE_BLOCK | ||
*/ | ||
public interface IAllomanticallyUsableBlock { | ||
public interface IAllomanticallyUsable { | ||
|
||
/** | ||
* Called when the block is steelpushed or ironpulled | ||
* | ||
* @param isPush whether the activation is Steel | ||
* @return whether the block was activated | ||
*/ | ||
boolean useAllomantically(BlockState state, Level world, BlockPos pos, Player playerIn, boolean isPush); | ||
boolean useAllomantically(Player player, boolean isPush); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.